-
-
Notifications
You must be signed in to change notification settings - Fork 3
yss site example
It is init on start by pager. Example yss site with description how to do it your self. This class need to be in directory of your project.
This is minimum of overwriting to set up your page. or grab blank :)
Kind: global class
See: this code on - GitHub
overtire with your constructions...
Kind: instance property of s_basicSailPage
Returns: [string] - name of your site
overtire function and set your site title
Kind: instance property of s_basicSailPage
Returns: [string] - html hex color definition of your background
overtire function and set default background color of your site
Kind: instance property of s_basicSailPage
Returns: [string] - to put in htmlDyno
overtire function
need to return html of your site
Kind: instance property of s_basicSailPage
Returns: [xmlObject] - xml object
overtire functon and set
need to return xml object of .svg or nothing
overtire methode and set looper if you need one
Kind: instance method of s_basicSailPage
overtire methode and set will be called after .getHtml
Kind: instance method of s_basicSailPage
overtire methode and set invoke after .svgDyno()
Kind: instance method of s_basicSailPage
overtire function / methode call on every msg comming from webSocket /ws/yss it's a place to put your callbacks
Kind: instance method of s_basicSailPage
Param | Type | Description |
---|---|---|
r | json |
incomming msg to process. this is a place to put your callbacks. expocting incomming message to be r = { "topic": "abc/cd", "payload": "11.3" } |