feat(adminui-vue): UTableEntity.vue - add the `hideActions` property support
UTableEntity
now supports a new property hideActions
. It allows to hide an action
from all the possible places at once: toolbar, context menu, toolbar dropdown, it also
disables keyboard shortcuts for the actions.
Before the change, to disable an action for entity table, it required something like:
<!-- Disallow copy -->
<template #contextMenuCopy>
<div/>
</template>
<template #toolbarDropdownCopy>
<div/>
</template>
An still, it won't affect keyboard actions. Now it is much easier to disable actions with the
new property. It supports the following actions: addNew
, copy
, newVersion
, showVersions
, edit
, delete
,
audit
, summary
, export
How, it is possible to control multiple actions with one property and be sure actions will be hidden in all the places:
<u-table-entity
:hide-actions="['copy', 'export']"
...
>
....
</u-table-entity>
</div>