DiSky DiSky v5.0.0-b1

Dropdown

type

A select menu whose choices are options you define. Selecting fires 'on dropdown click' with 'selected values'; in a modal, its values are read with 'value of dropdown with id'. A dropdown takes a whole row on its own.

11 syntaxesextends Componentnet.itsthesky.disky5.api.components.StringSelectBuilder
11 / 11

Properties

10
propertyText
[the] custom id of %dropdown%
%dropdown%'s custom id
change modes set
Helpful?
propertylist of Textsince 5.0.0-a1
[the] options of %dropdown%
%dropdown%'s options

The choices of a string dropdown, read back as their values.

Add dropdown options to it; remove one by its value.

change modes setaddremovedelete
Helpful?
propertylist of Textsince 5.0.0-a1
[the] default values of %dropdown%
%dropdown%'s default values

What is selected when the dropdown is first shown: option values for a string dropdown, users, roles or channels for an entity dropdown.

change modes setaddremovedelete
Helpful?
propertyTextsince 5.0.0-a1
[the] placeholder of %dropdown%
%dropdown%'s placeholder

The greyed text shown in a dropdown or a text input while nothing is selected or typed.

change modes set
Helpful?
propertyNumbersince 5.0.0-a1
[the] min range of %dropdown%
%dropdown%'s min range

The least the user must provide: options selected in a dropdown, characters typed in a text input.

change modes set
Helpful?
propertyNumbersince 5.0.0-a1
[the] max range of %dropdown%
%dropdown%'s max range

The most the user may provide: options selected in a dropdown, characters typed in a text input.

change modes set
Helpful?
propertyBoolean
[the] disabled of %dropdown%
%dropdown%'s disabled
change modes set
Helpful?
propertyBooleansince 5.0.0-a1
[the] required of %dropdown%
%dropdown%'s required

Whether the user must fill this component before submitting the modal it sits in. Ignored on a message.

change modes set
Helpful?
propertyText
[the] label of %dropdown%
%dropdown%'s label
change modes set
Helpful?
propertyText
[the] description of %dropdown%
%dropdown%'s description
change modes set
Helpful?

Expressions

1
expressionDropdownsince 5.0.0-a1
[a] new [string] drop[( |-)]down [with] [the] id %string%

Creates a dropdown with the given id. Add options to it before sending it.

Helpful?

Returned by

1

Syntaxes elsewhere in DiSky that return Dropdown.

An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.