|
24 | 24 | </div><div class="tsd-comment tsd-typography"></div></section><section class="tsd-panel tsd-member"><a id="isCancellable" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>is<wbr/>Cancellable</span><a href="#isCancellable" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">is<wbr/>Cancellable</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><div class="tsd-comment tsd-typography"><p>If true, a "Cancel" button will be included in the dialog. Defaults to <code>true</code>. If the user selects the cancel button, the <code>show()</code> method will return <code>false</code>. If <code>false</code>, no cancel button will be displayed and the user must select one of the button name options.</p>
|
25 | 25 | </div><div class="tsd-comment tsd-typography"></div></section><section class="tsd-panel tsd-member"><a id="message" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>message</span><a href="#message" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>A longer message explaining the purpose of the dialog, if needed.</p>
|
26 | 26 | </div><div class="tsd-comment tsd-typography"></div></section><section class="tsd-panel tsd-member"><a id="title" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>title</span><a href="#title" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">title</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><div class="tsd-comment tsd-typography"><p>Short title.</p>
|
27 |
| -</div><div class="tsd-comment tsd-typography"></div></section></section><section class="tsd-panel-group tsd-member-group"><h2>Field</h2><section class="tsd-panel tsd-member"><a id="addButton" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>add<wbr/>Button</span><a href="#addButton" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link" id="addButton.addButton-1"><span class="tsd-kind-call-signature">add<wbr/>Button</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span>, <span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">isDefault</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">isDestructive</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#addButton.addButton-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Add a button to the array of buttons to be displayed. All buttons should be created before calling <code>show()</code>.</p> |
| 27 | +</div><div class="tsd-comment tsd-typography"></div></section></section><section class="tsd-panel-group tsd-member-group"><h2>Field</h2><section class="tsd-panel tsd-member"><a id="addButton" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>add<wbr/>Button</span><a href="#addButton" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link" id="addButton.addButton-1"><span class="tsd-kind-call-signature">add<wbr/>Button</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span>, <span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">isDefault</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">isDestructive</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">tintColor</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#addButton.addButton-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Add a button to the array of buttons to be displayed. All buttons should be created before calling <code>show()</code>.</p> |
28 | 28 | </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">object</span></h5><div class="tsd-comment tsd-typography"><p>only needed to associate a different value than will be displayed in the button. For example, if you call <code>prompt.addButton("First Button", 1)</code>, after calling <code>prompt.show()</code> if that button is pressed, the <code>prompt.buttonPressed</code> will contain the number value <code>1</code>.</p>
|
29 | 29 | </div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">isDefault</span>: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><p>used to specify a single button which will be pinned to the bottom of the prompt and respond to <code>cmd + return</code> as the default button. If only one button is added to a prompt, it is assumed to be the default.</p>
|
30 | 30 | </div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">isDestructive</span>: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><p>if true, present the button as a destructive action, typically a red button, in the intereface.</p>
|
| 31 | +</div><div class="tsd-comment tsd-typography"></div></li><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">tintColor</span>: <a href="../types/tintColor.html" class="tsd-signature-type tsd-kind-type-alias">tintColor</a></h5><div class="tsd-comment tsd-typography"><p>Optionally override the default tint color of the button for the purpose of providing visual groupings. Tint colors are drawn from the current theme in use.</p> |
31 | 32 | </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div></li></ul></section><section class="tsd-panel tsd-member"><a id="addDatePicker" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>add<wbr/>Date<wbr/>Picker</span><a href="#addDatePicker" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link" id="addDatePicker.addDatePicker-1"><span class="tsd-kind-call-signature">add<wbr/>Date<wbr/>Picker</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span>, <span class="tsd-kind-parameter">label</span>, <span class="tsd-kind-parameter">initialDate</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#addDatePicker.addDatePicker-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Add a date and/or time picker to the prompt, with the arguments as below. The <code>fieldValues</code> entry for this will be a date object.</p>
|
32 | 33 | </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>Identifier for the field. This will be used as the key in the <code>fieldValues</code> dictionary to access the contents of the field after calling <code>show()</code>.</p>
|
33 | 34 | </div><div class="tsd-comment tsd-typography"></div></li><li><h5><span class="tsd-kind-parameter">label</span>: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>User-friendly text label to place next to the field.</p>
|
|
0 commit comments