Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 1.03 KB

exported-interfaces.md

File metadata and controls

33 lines (29 loc) · 1.03 KB

Exported interfaces


IDisplay

Used for the displayed keyboard buttons. See the default display options

export interface IDisplay {
  [button: string]: string;
}

ILayoutItem

Used for the different layouts. The Keyboard support 4 different layout names:

  • default => Displayed when none of the function buttons are clicked.
  • shift => Displayed when caps or shift is clicked.
  • alt => Displayed when alt is clicked. If layout name is not defined, it fall back to default layout.
  • altShift => Displayed when alt and shift is clicked. If layout name is not defined, it fall back to default layout.
export interface ILayoutItem {
  layout: { [layoutName: string]: string[] };
  display?: IDisplay;
}

ISelect

Used for the select dropdown options list. See the full option list

export interface ISelect {
  name: string;
  title: string;
}