Skip to Content
sdeck docs

Setting fields

Every kind of field, and what its value is.

FieldValueOptions
setting.textstringplaceholder, multiline, source, dependsOn, live
setting.numbernumbermin, max, step
setting.booleanboolean
setting.colorstring, as #rrggbb
setting.selectOne of the choicesThe choices, as { value: "Label" } or a list
setting.pickstringThe source, then first and dependsOn
setting.pagestring, the page's namenone
setting.slotsstring[], such as ["key:0"]
setting.imagestringlive
setting.groups{ id, name, members }[]source. For the plugin's own settings only.
setting.secretstringFor the plugin's own settings only

All of them take:

OptionWhat it does
defaultWhat it starts as
descriptionA line under the field
requiredRefuses an empty field
validateSays what is wrong, as a function or a Standard Schema
visibleIfShows it only while another field has a value: { mode: "set" }
appearanceIt only changes how the button looks, so workflow steps leave it out

Settings explains how they work together.