I have custom buttons in the datagrid toolbar and in the conext menu.
How can I disable them if no entry in the grid is selected? Normally i would do sth like: :disabled="_.isEmpty(this.selectedRows)", but since they are generated automatically I don't know how to do that.
gridContextMenuItems: [
{
text: 'Copy Url',
target: '.e-content',
id: 'copyurl'
}],
toolbarOptions: [
{
text: 'Copy url',
id: 'copyurl'
}]