sling-web-component-brand-icon
Install
npm instal sling-web-component-brand-icon
Tag
<sling-brand-icon></sling-brand-icon>
Dependencies
- sling-framework
- sling-helpers
Attributes and properties
Name | Type | Default Values | ReflectToAttribute | Observer | callSdk |
---|
brandid | Number | | :heavy_check_mark: | | |
width | Number | | :heavy_check_mark: | | |
height | Number | | :heavy_check_mark: | | |
Description
Name | Description |
---|
brandid | Id that identifies the flag that will be displayed. |
width | Value that defines the width. |
height | Value that defines the heigth. |
Events
This component does not emit events.
Examples
All component examples can be emulated using the npm start sling-web-component-brand-icon
command.
Usage
<sling-brand-icon brandid="2" width="50" height="50"></sling-brand-icon>
![image](https://user-images.githubusercontent.com/22959060/45705866-0f67b500-bb51-11e8-8e18-72721604c669.png)
<sling-brand-icon brandid="5" width="50" height="50"></sling-brand-icon>
![image](https://user-images.githubusercontent.com/22959060/45706462-b6008580-bb52-11e8-9a58-0811263e7881.png)