TileConfigComponent
Component Metadata
Section titled “Component Metadata”Selector: yuv-tile-config
Standalone: Yes
Inputs
Section titled “Inputs”bucket
Section titled “bucket”Type: string | undefined
Default Value: undefined
Tile configurations are stored globally for all apps. If you want a separate config for your app/component you can specify a bucket. A bucket is basically an ID where your custom tile config will be stored and retrieved. Buckets should be unique so be sure to use a unique namespace.
bucketLabel
Section titled “bucketLabel”Type: string | undefined
Default Value: undefined
configFlavors
Section titled “configFlavors”Type: ObjectFlavor[]
Default Value: []
configTypes
Section titled “configTypes”Type: VirtualObjectType[] | undefined
Default Value: undefined
Outputs
Section titled “Outputs”canceled
Section titled “canceled”Type: EventEmitter
Type: EventEmitter
Properties
Section titled “Properties”changes
Section titled “changes”Type: Record<string | ObjectConfig | undefined>
Default Value: \{\}
flavors
Section titled “flavors”Type: ObjectFlavor[]
Default Value: []
objectConfig
Section titled “objectConfig”Type: ObjectConfig
selectedSlot
Section titled “selectedSlot”Type: string
selectedType
Section titled “selectedType”Type: VirtualObjectType
selectedTypeProperties
Section titled “selectedTypeProperties”Type: ObjectTypeField[]
Default Value: []
Type: Signal<InnerType[]>
Default Value: computed(() => \{ const ct = this.configTypes() || []; const cf: VirtualObjectType[] = []; // TODO: enable when flavors are supported in tile config // const cf = this.configFlavors() || []; return [...ct.map((t) => (\{ id: t.id, icon: t.icon, data: t \})), ...cf.map((f) => (\{ id: f.id, icon: f.icon, flavor: true, data: f \}))]; \})
Methods
Section titled “Methods”actionSelected
Section titled “actionSelected”actionSelected(action: Action): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| action | Action |
cancelConfig
Section titled “cancelConfig”cancelConfig(): voidgetConfigProperty
Section titled “getConfigProperty”getConfigProperty(p: string): ObjectConfigProperty | undefinedArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| p | string |
getConfigValue
Section titled “getConfigValue”getConfigValue(p: string): ObjectConfigIcon | ObjectConfigProperty | ObjectConfigAction | ObjectConfigBadge | undefinedArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| p | string |
getSelectedActions
Section titled “getSelectedActions”getSelectedActions(): string[]iconSelected
Section titled “iconSelected”iconSelected(icon: string | null): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| icon | string | null |
propertySelected
Section titled “propertySelected”propertySelected(tileSlot: string, field?: Partial<ObjectTypeField>): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| tileSlot | string | |
| field | Partial<ObjectTypeField> |
resetConfig
Section titled “resetConfig”resetConfig(): voidsaveConfig
Section titled “saveConfig”saveConfig(): voidslotSelect
Section titled “slotSelect”slotSelect(item: string): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| item | string |
typeSelected
Section titled “typeSelected”typeSelected(type: InnerType): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| type | InnerType |