input

Methods#

board#

board(title): Promise<Board | null>

Board input

Parameters:#

NameType
titlestring

Returns: Promise<Board | null>

buttons#

buttons(title, buttonsList): Promise<string>

Buttons input

Parameters:#

NameType
titlestring
buttonsListArray<string | { danger?: boolean ; label: string ; value: string }>

Returns: Promise<string>

column#

column(title, board, types): Promise<Column | null>

Column input

Parameters:#

NameTypeOptional
titlestring-
boardBoard-
typesArray<ColumnTypes>Yes

Returns: Promise<Column | null>

file#

file(title): Promise<{ content: any ; file: File | null }>

File input

Parameters:#

NameType
titlestring

Returns: Promise<{ content: any ; file: File | null }>

select#

select(title, optionsList): Promise<string>

Select input

Parameters:#

NameTypeDescription
titlestringTitle explaining the input to the user
optionsListArray<string | { label: string ; value: string }>Array of strings or Array of object with value and label

Returns: Promise<string>

A promise string with the selected string or the value from object

text#

text(title): Promise<string>

Text input

Parameters:#

NameTypeDescription
titlestringTitle explaining the input to the user

Returns: Promise<string>

user#

user(title): Promise<User | null>

User input

Parameters:#

NameType
titlestring

Returns: Promise<User | null>