Modal: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 35: | Line 35: | ||
Set each form label on its own line. | Set each form label on its own line. | ||
==== modal.addEntry(label: <code>String</code>, type: <code>"text" | "color"</code>, validation): <code>EntryObj</code> ==== | ==== modal.addEntry(label: <code>String</code>, type?: <code>"text" | "color"</code>, validation?: <code>"number" | "required"</code>): <code>EntryObj</code> ==== | ||
Add an input entry to the form. | Add an input entry to the form. | ||
label: The label to be shown next to the input. | label: The label to be shown next to the input. | ||
type (optional): 'text' or 'color'. | type (optional): 'text' or 'color'. The type of input. | ||
validation (optional): 'number'. Check if the entry contains a valid value. | validation (optional): 'number' or 'required'. Check if the entry contains a valid value. | ||
==== modal.setSize(width: <code>Number</code>, height: <code>Number</code>): <code>void</code> ==== | ==== modal.setSize(width: <code>Number</code>, height: <code>Number</code>): <code>void</code> ==== | ||