Helllo All,
I am struggling hard to apply KendoUI theme colors to radiobutton and checkbox controls.
I am using out of the box KendoUI's flat theme. All the widgets on my screen are displayed and decorated with the KendoUI theme and I get some basic styling on primitive controls like checkbox, radiobutton etc. by applying ".k-textbox" class on those. I have referred: http://docs.kendoui.com/getting-started/web/appearance-styling for details.
As per HTML standards, you can't give border-color to checkbox, radiobutton elements. But somehow they are decorated and KendoUI theme color is applied to the border on mouse hover? Strange! Any clues to override hover border color on some specific scenarios.
Thanks for your help.
Sam
Kendo UI doesn't include styles for radio buttons and checkboxes. The .k-textbox class is meant for styling textboxes (hence the name). It is not recommended to use that class for checkboxes or radio buttons because it would cause the loss of the native appearance.
Related
I would like complex button, which has several text elements and which should change their state and color depending on button state.
Unfortunately, I see that Xamarin button has only predefined image and text parameters.
How to have multiple controls inside a button in Xamarin?
Visual state manager(Only XF 3.0+) have three states: normal, disabled, focused which is named "CommonStates", or you can create custom states.Maybe it could help:
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/visual-state-manager
I think you must read more in content view, where you can add labels into stacklayout or grid with your own api bindable property, then use it wherever you want in your code:
https://learn.microsoft.com/en-us/dotnet/api/xamarin.forms.contentview
I have a kendo grid which each row has an edit button. I am using Bootstrap to add a tooltip to the edit button, as well as other things. The edit button brings up a window to edit the attributes of the row model.
The tooltip kept getting cut off by the boundaries of the grid. To solve this I used placement=body when initializing the tooltips.
The problem I have now, is that the the tooltip does not hide if the button is clicked, and the editor window comes up. I tried changing the trigger to just be 'hover', but that did not help.
I tried doing ('[title]').tooltip('hide') in the edit event of the grid, but that doesn't seem to work at all.
I believe the problem has to do with 'edit' opening a kendo window. Because the other buttons with tooltips are fine, as they trigger a BootstrapDialog.
What happens is that the .tooltip has a z-index of 1070 while .modal has a z-index of 1050.
You can add the following to your css to ensure that .tooltip is displayed below .modal :
.modal{
z-index: 1071;
}
Of course, this means that you absolutely can't have a tooltip displayed from inside your modal, so this maybe doesn't suit your specific needs.
If that's the case, you should be able to add another class to your tooltip div and override the z-index on this class.
I'm well aware of the monkey-patch nature of this fix, but I've looked for a solution for this for weeks and couldn't find anything better.
Some of the color selection buttons in the Xcode details panels are a NSPopupButton with a color well. It looks something like a segmented control/popup button.
Placing a standard color well and standard popup button next to each other doesn't have the same look. Also, the menu wouldn't cover the color well in this case. The popup image (two triangles) is not readily available for a custom control either.
Anyone tried to make a similar control before? Any hints on how to make it?
I am using vaadin framework, I can use the com.vaadin.ui.Accordion library for Accordion.
By default it appears in horizontal style. Is there any idea of using this style in vertical form?
Thanks
An Accordion is a TabSheet, a subclass of TabSheet, as documented in the API.
TabSheet is meant for horizontal use, Accordion for vertical use.
TabSheet screenshot:
Accordion screenshot:
From http://vaadin.com/api/com/vaadin/ui/Accordion.html:
An accordion is a component similar to a TabSheet, but with a vertical orientation and the selected component presented between tabs
Do you mean you want it to be horizontal instead of vertical?
I am creating a drawing application where the user can insert primitive shapes, like circles, triangles, etc. In the toolbar, I would like to have a single "Add Shape" button that shows a dropdown widget when pressed. In the dropdown, I would like to have a grid of QAction icons representing the different shapes the user can add. This is almost identical to how one adds basic shapes in powerpoint.
I know how to create a dropdown menu using a QToolButton and setMenu. However, this lists actions in a traditional menu format. I want the QActions showing only their icons, and to have them arranged in a grid - like a toolbar that has multiple rows. Do I have to create a custom widget for this?
Thanks!
By default QMenu uses a vertical layout to display the QActions so If you want a grid you need to subclass it to create your custom one.