Update buttons in a toolbar

51 views
Skip to first unread message

JDMCreator

unread,
Mar 18, 2012, 9:13:53 PM3/18/12
to ukijs
Hi !

When I try to change buttons in my toolbar, using this :

var t=uki("#toolbarm");
t[0].buttons([{
text: 'Example',
id: 'btn1'
}, {
text: 'Example 2',
id: 'btn2'
}, {
text: 'Example 3,
id: 'btn3'
}]);
uki("#btn1").resizeToContents('width').layout();
uki("#btn2").resizeToContents('width').layout();
uki("#btn3").resizeToContents('width').layout();

The buttons are incomplete ? Why
Reply all
Reply to author
Forward
0 new messages