File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 66
66
<span class =" sr-only" >Loading...</span >
67
67
</div >
68
68
{{ `${action.label} (${checkboxes.length})` }}
69
+ <div v-if =" action.badge" class =" text-white bg-gradient-to-r from-purple-500 via-purple-600 to-purple-700 hover:bg-gradient-to-br focus:ring-4 focus:outline-none focus:ring-purple-300 dark:focus:ring-purple-800
70
+ font-medium rounded-sm text-xs px-1 ml-1 text-center " >
71
+ {{ action.badge }}
72
+ </div >
69
73
</button >
70
74
71
75
<RouterLink v-if =" coreStore.resource?.options?.allowedActions?.create"
Original file line number Diff line number Diff line change @@ -103,6 +103,11 @@ export interface AdminForthBulkActionCommon {
103
103
**/
104
104
state ?: 'danger' | 'success' | 'active' ;
105
105
106
+ /**
107
+ * Optional small badge for button which will be displayed in the list view
108
+ */
109
+ badge ?: string ,
110
+
106
111
/**
107
112
* Icon for action button which will be displayed in the list view
108
113
*/
You can’t perform that action at this time.
0 commit comments