I assume management.
Then get the management object of this toolbar through toobamanager = manage.toolbarmanager.
Each button can be disabled (ID) through toobamanage. Settings; Set to Unavailable
You need to get the button by passing its id to the management class.
The id can be filled in by itself at initialization.
Toolbar: {
Project: [{
Text: "new user",
id:'adduser ',
Click: addAdminUser,
Icon: "Add"
}, {
OK: Correct.
},{
Text: "Delete user",
Id: "delete user",
Click: disable checking lines,
Icon: "Lock"
}]
}
});
toobar manage . set disabled(' adduser ');
toobar manage . set disabled(' deleteuser ');