HTML Elements › Forums › ListBox › Sorted by default?
Tagged: custom elements, list box, smart-list-box, sort, sort by default, sorted list box, sorting items, web components
This topic contains 2 replies, has 2 voices, and was last updated by Michael20 6 months ago.
Is it possible for the list box to be sorted by default?
Best regards, Mike
yes it is. Just set the sorted attribute on the tag of the element and the items will be sorted by default. Here’s an example:
Best Regards, Christopher
Smart HTML Elements Team https://www.htmlelements.com
Thank you very much!
You must be logged in to reply to this topic.