An update to the bootstrap extra components adds a drop down button and a progress bar.
Visit the project page on github for details. Wiki pages have been added for both components.
var menuItems = [{
itemID: "1",
dataProvider: "fv_find_txt",
displayTyp: "INPUT",
iconName: "fa fa-search",
onAction: "onAction_find",
position: "LEFT",
text: "i18n:cuvis.dataprov.text.lc.entersearch"
},
{
itemId: "2",
displayType: "MENU_ITEM",
iconName: "fa fa-pencil-square-o",
onAction: "onAction_edit",
position: "RIGHT",
text: "i18n:cuvis.btn.lc.edit"
},
{
itemId: "3",
displayType: "MENU_ITEM",
iconName: "fa fa-user",
position: "RIGHT",
text: scopes.globals.gUsername_txt,
subMenuItems: [{
itemId: "3.1",
iconName: "fa fa-sign-out",
onAction: "onAction_logout",
text: "i18n:cuvis.menuitem.text.lc.logout"
}]
}];
elements.navbar_1.setMenuItems(menuItems);
The function setMenuItems(Array<bootstrapextracomponents-navbar.menuItem>) is not applicable for the arguments (Array<{itemID:String,dataProvider:String,displayTyp:String,iconName:String,onAction:String,position:String,text:String}|
{itemId:String,displayType:String,iconName:String,onAction:String,position:String,text:String}|{itemId:String,displayType:String,iconName:String,position:String,text:String,subMenuItems:Array<{itemId:String,iconName:String,onAction:String,text:String}>}>)
...
onAction: onAction_find,
...
/** @type {Array<bootstrapextracomponents-navbar.menuItem>} */
var menuItems = [...]
menuItems = [{
itemId: "1",
dataProvider: fv_find_txt,
displayType: "INPUT_GROUP",
iconName: "fa fa-search",
onAction: onAction_find,
position: "LEFT",
isActive: "true",
text: "Enter search..."
...
dataProvider: my_data_provider
dataProvider: 'my_data_provider' // the name of the dataProvider, not it's value
Users browsing this forum: No registered users and 1 guest