This repository was 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
Settings
hamzahalhariri edited this page Aug 2, 2018
·
4 revisions
Settings component used for your plugin settings config
class MySettings extends Dashboard.Settings {
plugin() {
return(
<GUI.ConfigInput name={'username'} ref={refs => this.settings['username'] = refs}/>
<GUI.ConfigPassword name={'password'} ref={refs => this.settings['password'] = refs}/>
)
}
}
You can access your config from Dashboard components with props.config.username && props.config.password