Closed yanhuixie closed 7 years ago
A new setting alwaysDisabled
is available within buttons configuration (it will force disable the button always irrespective of other disabled
settings). It is to be set like below
'toolbar'=>[
'mybtn' => [
'icon' => 'copy',
'alwaysDisabled' => $condition ? TRUE : FALSE,
'options' => [
'title' => 'blabla...',
'disabled' => $condition ? TRUE : FALSE,
'id'=>'btn_my'
]
],
],
Oh, I'm sorry we nearly didn't update more than a year. I'm glad for the new setting, thank you!