This repository has been archived by the owner on Mar 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Health
hamzahalhariri edited this page Jun 15, 2018
·
5 revisions
your Health component will only rendered in the Dashboard Modal when you click on plugin name in Healths list upper right.
const GUI = Dashboard.GUI
class MyHealth extends Dashboard.Health {
render() {
return <GUI.Wrapper>
<GUI.Paragraph text='infocaster ready'/>
</GUI.Wrapper>
}
}
and don't forget to register your Health component in register function:
Dashboard.register({
...
health: MyHealth
...
})
you can set your plugin health by calling this.healthy(boolean)
in any Dashboard Components Application, Agent and Widget