Add visibility condition to page blocks
This commit is contained in:
committed by
Jože Fortun
parent
8ed2248f0c
commit
0c91950f15
@@ -21,11 +21,17 @@ interface PageBlockStyle {
|
||||
border?: PageBlockStyleBorder;
|
||||
}
|
||||
|
||||
interface Visibility {
|
||||
expression: string;
|
||||
roles: string[];
|
||||
}
|
||||
|
||||
interface PageBlockMeta {
|
||||
hidden?: boolean;
|
||||
tempID?: string;
|
||||
customID?: string;
|
||||
customCSSClass?: string;
|
||||
visibility: Visibility;
|
||||
}
|
||||
|
||||
export type PageBlockInput = PageBlock | Partial<PageBlock>
|
||||
@@ -49,6 +55,10 @@ export class PageBlock {
|
||||
tempID: undefined,
|
||||
customID: undefined,
|
||||
customCSSClass: undefined,
|
||||
visibility: {
|
||||
expression: '',
|
||||
roles: [],
|
||||
},
|
||||
}
|
||||
|
||||
public style: PageBlockStyle = {
|
||||
|
||||
Reference in New Issue
Block a user