4.0.0
With Dashboard 4.0.0, we have added a new Plugin-API and deprecated all the old ones.
API base
All the methods from the old API
Old
import Dashboard from 'Dashboard'
Replacement
import DashboardPlugin from 'Dashboard/plugin'
const Plugin = new DashboardPlugin('@plugin_bundle')
Documentation
registerScoped functions
All the scoped functions that accessible with this
namespace when extending Dashboards Components such like Application
Old
Scoped methods
this.on
this.events
this.off
this.send
this.ready
this.unready
this.openModal
this.openApplicationInModal
this.closeModal
this.request
this.healthy
this.hasPermission
class MyApplication extends Dashboard.Application {
...
...
...
handleOnClick() {
this.send({
name: 'name',
userData: {...data}
})
}
render() {
return (
<div>
<button onClick={this.handleOnClick}>Click me!</button>
</div>
)
}
}
Replacement
All the scoped methods has been replaced with alternatives from the latest Plugin-API
OverviewLast updated
Was this helpful?