Gets or sets the current layout settings as a JSON string.
This property is typically used to persist the layout settings.
attachTo(dashboard: DashboardLayout): void
Applies this layout to the specified DashboardLayout control.
In this method, the layout is applied to some dashboard. Adds the codes to implement the rendering parts for the layout.
A DashboardLayout control which the layout is applied to.
detach(): void
Detaches this layout from the DashboardLayout control.
In this method, the resources related will be released. It is often used when applying the new layout. It is called to detach the old layout.
endMove(movedTile: Tile, endPosition: Point): void
Ends the moving operation and exits the moving mode.
move(movedTile: Tile, position: Point): void
Moves the tile.
Adds the codes in this method to do somethings during moving. For example, creates a special moving icon represeting the moving tile, shows some tips for moving.
The tile to be moved.
The position of the moving mouse. It is the coordinate within the browser visible area.
refresh(fullUpdate): void
Refreshes the layout.
When the layout properties are changed, especially the items are updated, this method should be called to redraw the layout.
Whether to update the layout as well as the content.
remove(removedTile: Tile): boolean
Removes the tile.
The tile to be removed.
resize(resizedTile: Tile, toPosition: Point): boolean
タイルをサイズ変更します。
このメソッドでサイズ変更を実装するためのコードを追加します。
The tile to be resized.
The position where the tile is resized to. It is the coordinate within the browser visible area.
showAll(): void
すべてのタイルを表示します。
startMove(movedTile: Tile, startPosition: Point): boolean
タイルの移動を開始します。
このメソッドにコードを追加して、移動の準備をします。たとえば、移動開始位置である移動タイルを保存します。
The tile to be moved.
The started position where the tile will be moved from. It is the coordinate within the browser visible area.
Defines the interface for the layout.
We can define the layout by implementing this interface.