Closed hebus closed 1 year ago
This PR contains 2 specifics updates:
true
{ id: string, type: string, images: { [key: string]: { filename: string, width?: number, height?: number }, ... } }
<uib-image-selector [sizeable]="<boolean>" [context]="<object>" param="<string>" description="<string>" />
E.g:
<uib-image-selector [context]="context" param="logoLight" description="Logo" class="d-block mb-3" />
context is a specific object containing the component configuration:
context: { config: { id: 'home-logo', type: 'home-logo', images: { logoLight: { filename: 'assets/vanilla-logo.png' }, logoDark: { filename: 'assets/vanilla-logo-dark.png' } } } }
To save the whole configuration json file in a single variable declaration.
This PR contains 2 specifics updates:
Image Selector
New Inputs
true
, sizeable components allow us to modify the width and the height of each imagesConfiguration expected
Usage
E.g:
context is a specific object containing the component configuration:
Updating config rule
To save the whole configuration json file in a single variable declaration.