john_helt
john_helt7mo ago

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
Myles Scolnick
Myles Scolnick7mo ago
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"})
john_helt
john_heltOP7mo ago
Great, thanks! is style just CSS styles?
Myles Scolnick
Myles Scolnick7mo ago
yea it is. it should be a fluid API on mo.ui.refresh().style()