I want to implement a UI component that
I want to implement a UI component that does a regular health check of a service my app needs. I was thinking the mo.ui.refresh component could do the trick, but it seems it's mostly directed towards a user interaction, wheras I would like a component that could refresh itself once in a while and render a new component (e.g. a green box if OK, a red box if bad health etc)
3 Replies
mo.ui.refresh
does seem the best way at the moment - but it needs to be rendered in order to be triggered.
i would use that and maybe .style({"visibility": "hidden"})
Great, thanks! is style just CSS styles?
yea it is. it should be a fluid API on
mo.ui.refresh().style()