This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:custom_html [2018/10/29 05:10] admin created |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Custom HTML ====== | ||
- | |||
- | |||
- | The Custom HTML widget lets you add custom code and layout to your widget. | ||
- | |||
- | Certain angular device variables and objects are available depending on the type of dashboard page. Detail pages (linked to a particular device ID) will have the following objects: | ||
- | ^ Object | ||
- | | device | ||
- | | user_device | ||
- | | deviceconfig | WattmonOS3.0 and above only: Details on all devices and roles in the config for the device | | ||
- | |||
- | In order to use a specific variable, enclose it in double curly braces. | ||
- | |||
- | ==== Example ==== | ||
- | |||
- | |||
- | The MAC address is: | ||
- | <code html> | ||
- | |||
- | The site name is : | ||
- | <code html> | ||
- | |||
- | A more complex example to list the serial numbers of all inverters of type 7081: | ||
- | |||
- | <code html> | ||
- | < | ||
- | <div class=' | ||
- | <div class=' | ||
- | <div class=' | ||
- | <div class=' | ||
- | </ | ||
- | <div class=' | ||
- | <div ng-show=' | ||
- | <div class=' | ||
- | <div class=' | ||
- | <div class=' | ||
- | </ | ||
- | </ | ||
- | </ | ||
- | |||
- | |||