Constructor
new ShowWarningSettingMetadata(name, label, warningText)
Marks this setting as a checkbox with the given name and label, set its default value to true, and also stores the warning text that will be shown to users if they attempt an action associated with this warning. Note the importance highlighted below of phrasing the checkbox's label in a way that is consistent with the meaning of this setting.
Parameters
-
name
string
same as in BoolSettingMetadata
-
label
string
same as in BoolSettingMetadata, but note that in this case it means the label shown next to the checkbox, which must match the semantics of this metadata, and thus should be phrased something like "Show warnings before..."
-
warningText
string
the message to be printed in the dialog box when the warning is shown. This should therefore be descriptive text, one or two sentences, so that the user understands the warning.