We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da8453e commit dffff97Copy full SHA for dffff97
index.ts
@@ -75,7 +75,8 @@ export default class extends AdminForthPlugin {
75
create: false,
76
edit: false
77
},
78
- label: this.options.labelForColumn || this.options.linkedResourceId
+ label: this.options.labelForColumn || this.options.linkedResourceId,
79
+ showIf: this.options.showIf || null,
80
};
81
resourceConfig.columns.push(virtualColumn);
82
types.ts
@@ -1,5 +1,7 @@
1
+import { Predicate } from "adminforth"
2
export interface PluginOptions {
3
linkedResourceId: string
4
dontDeleteJunctionRecords?: boolean
5
labelForColumn?: string
6
+ showIf?: Predicate
7
}
0 commit comments