Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

toolbar : show some

sabby asked on August 24, 2017

 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