49 | { "By default filtering uses case-insensitive filtering. You can change to case-sensitive
50 | by using the " }{ "filter_case()" }
{ "function." }
51 |
62 | { "You can also create your own filter. You need to create a function that returns
63 | a " }{ "FilterFn" }
{ " structure with the wanted functionality.
64 | In this case, options are filtered when title starts with provided text (case
65 | sensitive)."}
66 |
49 | { "You can use this component in forms:" } 50 |
51 |{ "id" }
{" if needed,"}{ "Note: some limitations exist, for example floating labels are not available."}
56 | 57 |50 | { "Options are divided in headers which appear as dividers. Headers cannot be selected 51 | and assumed to start a new group. If a group becomes empty after filtering, it is 52 | removed from the list." 53 | } 54 |
55 |56 | { "Some entries can also be marked as 'disabled'. These entries cannot be selected either."} 57 |
58 | 59 |61 | { "Try typing in the dropdown and select a fruit. Multiple selections are possible, 62 | with the mouse or by selecting an entry and pressing Enter. "} 63 |
64 |
65 | { "The property "}{"keep_open"}
{ " ensures that the dropdown does not
66 | close when an item is selected."}
67 |
69 | {"When an option is selected, handler "}{ "onselectchange" }
{" is called with
70 | the value of the item and "}{ "selected" }
{ " field saying if it will be selected
71 | or not. This is used to maintain the list of selected items."}
72 |
49 | { "Try typing in the dropdown and select a fruit. You have multiple possibilities 50 | to select an item:" } 51 |
52 |
58 | {"When an option is selected, handler "}{ "onselectchange" }
{" is called with
59 | the value of the item and "}{ "selected" }
{ " field saying if it will be selected
60 | or not. Beware that the function is called both for elements gettings selecting and loosing selection."}
61 |
63 | { "When an element is selected, the title shows the index of the element, provided as "}{"value"}
64 | { " field." }
65 |
{"Some text inside "}{"THE BODY"}{" of the accordion item"}
225 | ///