Menu
Download Free Trial

toolbar : show some

 beforetoolbarcreated: customizeToolbar    used this 
got below error
TypeError: Cannot read property ‘getTabs’ of undefined

3 answers

Public
sabby August 24, 2017

attaching error.
do i need to use window. ?

Attachments:
flex1.png

Public
sabby August 24, 2017

<FlexmonsterReact.Pivot ref=”pivot” toolbar = “true”
beforetoolbarcreated = {this.customizeToolbar()}
 
customizeToolbar(toolbar) {
// get all tabs.
var tabs = toolbar.getTabs();
console.log(“tabs” + tabs);
toolbar.getTabs = function () {
// delete the first tab
delete tabs[0];
return tabs;
}
}
 

got below error
TypeError: Cannot read property ‘getTabs’ of undefined

 

Public
sabby August 24, 2017

i tried some documentation. am good now. 

Please login or Register to Submit Answer