@cas-smartdesign/app-banner
v0.3.0
Published
A popover element that is shown when deeplinks to SmartDesign are opened on mobile devices. It contains a link to open the page in the mobile app instead of the system broswer of the mobile device.
Readme
@cas-smartdesign/app-banner
An element that functions as an app banner and can be used to reference another page.
Usage Examples
- In the SmartWe tenant and login mobile page to link to the mobile App
- In the Cas GenisisWorld tenant and login mobile page to link to the mobile App
Implementation steps
- Complete the installation steps in the menu tab Installation
- Add the tag <sd-app-banner> with the parameters from the Chapter Properties
Properties
message: string- The message that is shown to the app-banner.
messageAppButton: string- The message that is used as a caption for open app button.
url: string- The URL shall be opened when the button is clicked.
icon: string- The path to an image that will be shown within the app-banner.
verticalAlignment: string- The option to set a fixed position for the app-banner:
- If you want to place it at the top, use "top"
- If you want to place it at the bottom, use "bottom"
- If this attribute's value is empty, you can apply your own CSS style. See in the second example.
- The option to set a fixed position for the app-banner:
CSS Custom Properties
--sd-app-banner-background-color- Defines the background color of the app banner (default is gray)
--sd-app-banner-link-color- Defines the color of the link button text (default is blue)
