Closed stefxx closed 1 year ago
I don't understand the problem..
If you want to use a JUI searchable select list in your feature page, you can create the select list like this:
mySearchableSelectList = new SelectListView(ID, Name, Values, Keys, ESelectListType.SearchableDropDown, Default);
and then call the ToHtml method to produce the html with the searchable attribute:
mySearchableSelectList.ToHtml()
Please elaborate on what you are trying to do, or on what doesn't work
Hi! Sorry, I guess I forgot to explain why I didn't want to use the default SelectListView but build my own HTML. I want to replicate the Device/Feature select list used in events as much as possible. So I want all (root) Devices to be disabled, like this:
Thanks again.
Never mind, I've found it. Just add searchable="Search..."
will make the search work.
<select class='mdb-select md-form jui-input jui-select' id='myID' searchable='Search...' required onchange="PostBack(this);">
Thanks!
Environment
HomeSeer
OS
Windows & Linux
HS Version
[v4.2.16.5]
Development
PSDK Version
v1.4.2.0
Language
VB
IDE
VS2019
Dev OS
Windows
Problem
In my plugin I want to create a searchable dropdown in a FeaturePage, like the device/feature selector in HS4 events. But there is no JUI type I can use. In a SettingsPage, I can use something like this:
SelectListView(ID, Name, Values, Keys, ESelectListType.SearchableDropDown, Default)
This is the (simplified) code I am currently using:
Description
I like to use a searchable dropdown in a FeaturePage for a new plugin I am currently developing.
Thanks!