Skip to content
This repository was archived by the owner on Mar 25, 2020. It is now read-only.

Settings

hamzahalhariri edited this page Aug 2, 2018 · 4 revisions

Dashboard.Settings

Settings component used for your plugin settings config

Simple Settings

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

Clone this wiki locally