Methods
dropdown
- dropdown(label, options, defaultValueIndex?): ModalFormData
-
Parameters
-
label: string | RawMessage
-
options: (string | RawMessage)[]
-
Optional
defaultValueIndex: number
slider
- slider(label, minimumValue, maximumValue, valueStep, defaultValue?): ModalFormData
-
Parameters
-
label: string | RawMessage
-
minimumValue: number
-
maximumValue: number
-
valueStep: number
-
Optional
defaultValue: number
submitButton
- submitButton(submitButtonText): ModalFormData
-
Parameters
-
submitButtonText: string | RawMessage
textField
- textField(label, placeholderText, defaultValue?): ModalFormData
-
Parameters
-
label: string | RawMessage
-
placeholderText: string | RawMessage
-
Optional
defaultValue: string | RawMessage
title
- title(titleText): ModalFormData
-
Parameters
-
titleText: string | RawMessage
toggle
- toggle(label, defaultValue?): ModalFormData
-
Parameters
-
label: string | RawMessage
-
Optional
defaultValue: boolean
Used to create a fully customizable pop-up form for a player.
Example
showBasicModalForm.ts