== stencil ==
By default, tabindex
is set to -1
:
--input--
<%= dropdown
['Dropdown 1', id => 'a_custom_id', right, items => [
['Item 1', ['item1'] ],
['Item 2', ['item2'] ],
[],
['Item 3', ['item3'] ]
] ] %>
--end input--
--output--
--end output--
== stencil ==
...but it can be overridden:
--input--
<%= dropdown
['Dropdown 2', caret, large, primary, items => [
['Item 1', ['item1'], data => { attr => 2 } ],
['Item 2', ['item2'], disabled, data => { attr => 4 } ],
[],
['Item 3', ['item3'], data => { attr => 7 } ],
[],
['Item 4', ['item4'], tabindex => 4 ],
'This is a header',
['Item 5', ['item5'] ],
] ] %>
--end input--
--output--
--end output--