diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-11-13 11:38:16 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-11-13 11:38:16 -0500 |
commit | 7304a61ef597970be3031b14e652fb3a4df44304 (patch) | |
tree | 36215c67daaf80a988c97fe4c483e4f87610043c /model/manifest.go | |
parent | ae8fd37332ad9f01b762ab37f5662cdd33f1e232 (diff) | |
download | chat-7304a61ef597970be3031b14e652fb3a4df44304.tar.gz chat-7304a61ef597970be3031b14e652fb3a4df44304.tar.bz2 chat-7304a61ef597970be3031b14e652fb3a4df44304.zip |
Add placeholder field and user_autocomplete type to plugin manifest (#7817)
* Add placholder field and user_autocomplete type to plugin manifest
* user_autocomplete -> username
Diffstat (limited to 'model/manifest.go')
-rw-r--r-- | model/manifest.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/model/manifest.go b/model/manifest.go index 48024fe92..12f105aaa 100644 --- a/model/manifest.go +++ b/model/manifest.go @@ -19,6 +19,7 @@ const ( PLUGIN_CONFIG_TYPE_RADIO = "radio" PLUGIN_CONFIG_TYPE_DROPDOWN = "dropdown" PLUGIN_CONFIG_TYPE_GENERATED = "generated" + PLUGIN_CONFIG_TYPE_USERNAME = "username" ) type PluginOption struct { @@ -47,6 +48,8 @@ type PluginSetting struct { // of pre-defined options. // // "text" will result in a string setting that can be typed in manually. + // + // "username" will result in a text setting that will autocomplete to a username. Type string `json:"type" yaml:"type"` // The help text to display to the user. @@ -55,6 +58,9 @@ type PluginSetting struct { // The help text to display alongside the "Regenerate" button for settings of the "generated" type. RegenerateHelpText string `json:"regenerate_help_text,omitempty" yaml:"regenerate_help_text,omitempty"` + // The placeholder to display for "text", "generated" and "username" types when blank. + Placeholder string `json:"placeholder" yaml:"placeholder"` + // The default value of the setting. Default interface{} `json:"default" yaml:"default"` |