Options
All
  • Public
  • Public/Protected
  • All
Menu

A Widget that holds Widgets and the amount of rows and columns, and is to be displayed as a grid on the client

example

new GridLayout({width:2,height:3},[
    new Blank(), new Blank(),
    new Blank(), new Blank(),
    new Blank(), new Blank()
])
//JSX
<GridLayout width={2} height={3}>
     <Blank/> <Blank/>
     <Blank/> <Blank/>
     <Blank/> <Blank/>
</GridLayout>

Hierarchy

  • GridLayout

Implements

Constructors

Properties

Methods

Constructors

constructor

Parameters

  • __namedParameters: object
    • height: number

      Number of rows

    • width: number

      Number of columns

  • children: Widget[]

Returns GridLayout

Properties

__variant__

__variant__: string = "GridLayout"

children

children: Widget[]

height

height: number

width

width: number

Methods

Static fromJSON

Parameters

  • json: object
    • children: any []
    • height: number
    • width: number

Returns GridLayout

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.