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 configTypes = this.configTypes() || []; const configFlavors: VirtualObjectType[] = []; // TODO: enable when flavors are supported in tile config // const cf = this.configFlavors() || []; return [ ...configTypes.map((types) => (\{ id: types.id, icon: types.icon, data: types \})), ...configFlavors.map((flavors) => (\{ id: flavors.id, icon: flavors.icon, flavor: true, data: flavors \})) ]; \})
Methods
Section titled “Methods”actionSelected
Section titled “actionSelected”actionSelected(action: Action): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| action | Action |
badgeSelected
Section titled “badgeSelected”badgeSelected(badge: Badge): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| badge | Badge |
cancelConfig
Section titled “cancelConfig”cancelConfig(): voidgetConfigProperty
Section titled “getConfigProperty”getConfigProperty(value: string): ObjectConfigProperty | undefinedArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| value | string |
getConfigValue
Section titled “getConfigValue”getConfigValue(value: string): ObjectConfigIcon | ObjectConfigProperty | ObjectConfigAction | ObjectConfigBadge | undefinedArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| value | string |
getSelectedActions
Section titled “getSelectedActions”getSelectedActions(): string[]getSelectedBadges
Section titled “getSelectedBadges”getSelectedBadges(): string[]getTypeLabel
Section titled “getTypeLabel”getTypeLabel(typeId: string): stringArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| typeId | 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(innerType: InnerType): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| innerType | InnerType |