UI / TileView
TileView Class
tile view
Hierarchy
↳
TileView
Table of contents
Properties
Accessors
itemHeight([itemHeight](mw.TileView.md#itemheight) ): void other |
---|
Set the child node height. For TileView, there must be a pre-set child node height, with a default value of 16 |
itemWidth([itemWidth](mw.TileView.md#itemwidth) ): void other |
Set the width of child nodes. For TileView, there must be a set width of child nodes. The default value is 16 |
click
Accessors
clearSelectionOnClick(clearSelection : boolean ): void other |
---|
Set whether to clear the selected item after clicking on the blank (only valid during initialization) |
itemPadding(): Margin |
Get view node margins |
listItems(): ListViewItemDataBase [] other |
Get List Data |
onItemClicked(): MulticastDelegate <(clickedItem : ListViewItemDataBase , doubleClick : boolean ) => void > other |
Return to click proxy |
onItemHoverChanged(): MulticastDelegate <(targetItem : Widget , hovered : boolean ) => void > other |
Return to hover status change agent |
onItemRefreshed(): MulticastDelegate <(rowDatas : ListViewItemDataBase []) => void > other |
Return UI, refresh, generate synchronization proxy |
onItemReleaseShow(): MulticastDelegate <(targetItem : Widget ) => void > other |
Call when removing the display of child widget, waiting for reuse |
onItemSelected(): MulticastDelegate <(selectedItem : ListViewItemDataBase , selectType : SelectInfo ) => void > other |
Return to select and modify the proxy. Unchecking/clearing will also trigger the selection and modification process. The returned parameter is selectedItem==null. Please pay attention to the judgment |
scrollBarStyle(): ScrollbarStyle other |
Scroll bar style |
scrollBarVisible(): boolean other |
Scroll bar visibility |
scrollOffset(): number other |
Get the current scrollbar offset position |
selectionMode(): SelectionMode other |
Get the selected mode |
tableRowStyle(): ListItemStyle other |
Item Item Node style Settings |
Methods
click
Methods
addItems(newListItems : ListViewItemDataBase []): void other |
---|
Add project node data |
clearItems(): void other |
Clean up data group |
clearSelection(): void other |
Clear the selection of the list |
findItemByIndex(index : number ): ListViewItemDataBase other |
Find the corresponding project node data according to the index. If the position is out of range, it will return null |
getSelectionIndexs(): number [] other |
Retrieve the index of the selected node |
getSelectionItems(): ListViewItemDataBase [] other |
Retrieve data from the selected node |
insertItem(newItem : ListViewItemDataBase , index : number ): void other |
Insert project node data, and if the position is out of bounds, automatically insert the last one |
removeItem(delItem : ListViewItemDataBase ): void other |
Remove project node data |
removeItemByIndex(delIndex : number ): void other |
Remove the project node data according to the index. If the position is out of range, the removal fails |
requestRefresh(): void other |
refresh data |
resetListItems(newListItems : ListViewItemDataBase []): void other |
Reset project node data group |
scrollIntoView(targetItem : ListViewItemDataBase ): void other |
The scroll bar is positioned to the position of the corresponding item |
setSelectionItem(selectedItems : ListViewItemDataBase ListViewItemDataBase [], selected : boolean , selectInfo? : SelectInfo ): void other |
Set node selection |
setSelectionItemByIndex(selectedIndexs : number number [], selected : boolean , selectInfo? : SelectInfo ): void other |
Select according to the index setting node. If the position is out of range, the corresponding operation is invalid |
newObject(orientation : Orientation , uiAssetGUID : string , parent? : Canvas , inName? : string ): ListView other |
Create a ListView control, and when the parent and inName are the same as an existing object, the old object will be destroyed |
Properties
Accessors
itemHeight
• | ||
---|---|---|
Set the child node height. For TileView, there must be a pre-set child node height, with a default value of 16 Parameters
|
itemWidth
• | ||
---|---|---|
Set the width of child nodes. For TileView, there must be a set width of child nodes. The default value is 16 Parameters
|