-
FEATURED COMPONENTS
First time here? Check out the FAQ!
In the simple way without fulfill parameter all works fine.
<combobox><custom-attributes a="A" /></combobox>
I can get custom attribute value: combobox.getAttribute("a");
But if use fulfill, I have no custom attributes even after handling onOpen event:
<combobox fulfill="onOpen">
<custom-attributes a="A" />
</combobox>
combobox.getAttribute("a"); // returns null
What is the right way to get custom attributes with fulfill parameter using? Thanks.
I tried what you describe in this zkfiddle. For both a normal and a combobox with fulfill the custom-attribute is logged as expected.
Are you trying something different in your case? (esp: when are you calling getAttribute - I do it in an onSelect listener). Do you use a specific (maybe older) ZK version where this happens?
Feel free to update the zkfiddle to reproduce your scenario then I can have a second look.
Robert
Asked: 2017-09-08 08:26:10 +0800
Seen: 18 times
Last updated: Sep 13 '17
How to capture onScroll Event of Combobox
combobox does not scroll autocompleted text into view
I want to take different value from label(value) and pass to @bind object
Combobox sometimes clears the selected item
zk combobox filtering option is not working inside listbox .
Zk create custom event for COmbo box?
Fetching Key-Value pair for ComboBox using SimpleListModel
How to set selected combobox when using setModel
ComboBox autocomplete does not work with onOk event [closed]