Skip to content

YuvWidgetGridWorkspacesComponent

component

Component for managing multiple widget grids in so called workspaces. Each workspace can have its own configuration and widgets. The user can switch between workspaces to use or edit the widgets in the current workspace.

Selector: yuv-widget-grid-workspaces

Standalone: No

Type: string[] | undefined

Default Value: undefined

Collection of buckets to load available widgets from. Wildcards are also posssible: [buckets]="['app.default', '*.public.*', 'app.no?.widgets']"``* represents any character 0-n times ? represents exactly one character

Type: WidgetGridWorkspaceOptions

Default Value: this.#DEFAULT_WORKSPACE_OPTIONS

Type: WidgetGridWorkspaceConfig | undefined

Default Value: undefined

Type: WidgetGridWorkspaceConfig | undefined

Type: boolean

Type: GridItemEvent

Type: unknown

Default Value: signal<WidgetGridWorkspaceConfig | undefined>(undefined)

Type: unknown

Default Value: computed<WidgetGridWorkspaceOptions>(() => (\{ gridConfig: \{ ...this.#DEFAULT_WORKSPACE_OPTIONS.gridConfig, ...(this.options().gridConfig || \{\}) \} \}))

Type: unknown

Default Value: signal<boolean>(false)

Type: unknown

Default Value: signal<Array<WidgetGridItemConfig> | undefined>(undefined)

Type: unknown

Default Value: inject(TranslateService)

Type: unknown

Default Value: signal<WidgetGridWorkspace | undefined>(undefined)

Type: MatDialogRef<any | any>

Type: unknown

Default Value: this.#fb.group(\{ id: [''], label: ['', Validators.required] \})

Type: unknown

Default Value: signal<string>('')

deleteCurrentWorkspace(): void
emitConfigChange(): void
getLabel(workspace: WidgetGridWorkspace): string
NameTypeDescription
workspaceWidgetGridWorkspace
onGridChange(grid: Array<WidgetGridItemConfig>): void
NameTypeDescription
gridArray<WidgetGridItemConfig>
onGridEvent(e: GridItemEvent): void
NameTypeDescription
eGridItemEvent
openWorkspaceDialog(create: boolean, tplRef: TemplateRef<any>): void
NameTypeDescription
createboolean
tplRefTemplateRef<any>
persistWorkspaceConfig(): void
revertWorkspaceConfig(): void
saveWorkspace(): void
setWorkspace(id: string, silent: unknown): void
NameTypeDescription
idstring
silentunknown