That API is already designed to only apply certain properties, so the fact that the styling for the combo box is somehow destroyed probably indicates some kind of invalid usage - at the skin level, or with changeDefaults(), or perhaps in CSS usage itself, such as invalid selectors.
Try again in a clean project with a default skin and you should see the problem correct itself, then you can troubleshoot from there.
Announcement
Collapse
No announcement yet.
X
-
Change only some properties of a MultiComboBoxItem autochild
Hello,
I'm trying to customize some properties of the ComboBox autochild of a MultiComboBoxItem.
Code:MultiComboBoxItem item = new MultiComboBoxItem(); ComboBoxItem props = new ComboBoxItem(); props.setUseClientFiltering(false); props.setHint(null); item.setComboBoxProperties(props);
Getting the default properties instead of creating a new instance also does not work:
Code:MultiComboBoxItem item = item.getComboBoxDefaults();
But if we set the combobox properties it loses its styling and defaults:
Is there a way to only set some properties, or inherit the defaults?
ThanksTags: None
Leave a comment: