Keyboard

Keyboard

See full keyboard example in Context#keyboard

Constructor

new Keyboard(buttonsopt, oneTimeopt) → {Keyboard}

Source:
Parameters:
Name Type Attributes Default Description
buttons Array.<Array.<Button>> <optional>
[]

array of arrays (rows) of buttons

oneTime boolean <optional>
false

show only once? (or disappear after button press?)

Returns:
Type:
Keyboard
Example
var kbd = new Keyboard([
   // One row
   [
     new Button('Maximum rows is 10, columns - 4.')
   ],
])

Members

(static, readonly) this.buttons :Array.<Array.<Button>>

Items of this keyboard

Source:
Type:

(static, readonly) this.one_time :boolean

Is this keyboard one-time?

Source:
Type:
  • boolean