I was wondering whether it's possible to create a menu/submenu item in a sidenav element that is able to be used as an input group. At the moment all of my sidenav menu items look like this:
- Code: Select all
// CONTACTS
menuItem = new Object();
menuItem.id = "contactsListView";
menuItem.text = "All Contacts";
menuItem.iconStyleClass = "fas fa-address-book";
menuItem.styleClass = "menu-item";
but I'd like to have one of the submenu items as an input group to search through types of contacts. I have tried to create one using a similar method to the cloud sample solution search:
- Code: Select all
// SEARCH
menuItem = elements.navbar.createMenuItem('Search..', DEFAULT_NAVBAR_ACTIONS.SEARCH, 'RIGHT')
menuItem.displayType = 'INPUT_GROUP';
menuItem.styleClass = 'closed searchbar';
menuItem.inputButtonStyleClass = "btn-default";
menuItem.iconName = "fa fa-search search-btn";
menuItems.push(menuItem)
but haven't had any luck yet. Is this possible with the sidenav element?
Thanks,
Alasdair