selecton
Version:
Selecton.js combines a searchbar and a dropdown menu with nested child lists.
28 lines (21 loc) • 683 B
JavaScript
export function _getInputGroup(w){
return w.select('.selecton-input-group');
}
export function _getInputSearch(w){
return _getInputGroup(w).select('.selecton-search');
}
export function _getInputSearchField(w){
return _getInputSearch(w).select('.selecton-search-input');
}
export function _getInputItems(w){
return _getInputSearch(w).selectAll('.input-item');
}
export function _getDropdown(w){
return w.select('.selecton-dropdown');
}
export function _getDropdownListWrapper(w){
return _getDropdown(w).selectAll('ul.list-wrapper');
}
export function _getDropdownListitems(w){
return _getDropdownListWrapper(w).selectAll('li.dropdown-list-item');
}