NuiList( json, json, float, int, int )
From NWN Lexicon
Jump to navigationJump to searchCreates a list view of elements.
// Creates a list view of elements.
// jTemplate needs to be an array of NuiListTemplateCell instances.
// All binds referenced in jTemplate should be arrays of rRowCount size;
// e.g. when rendering a NuiLabel(), the bound label String should be an array of strings.
// You can pass in one of the template jRowCount into jSize as a convenience. The array
// size will be uses as the Int bind.
// jRowHeight defines the height of the rendered rows.
json // Element
NuiList(
json jTemplate, // NuiListTemplateCell[] (max: 16)
json jRowCount, // Bind:Int
float fRowHeight = NUI_STYLE_ROW_HEIGHT,
int bBorder = TRUE,
int nScroll = NUI_SCROLLBARS_Y // Note: Cannot be AUTO.
);
// jTemplate needs to be an array of NuiListTemplateCell instances.
// All binds referenced in jTemplate should be arrays of rRowCount size;
// e.g. when rendering a NuiLabel(), the bound label String should be an array of strings.
// You can pass in one of the template jRowCount into jSize as a convenience. The array
// size will be uses as the Int bind.
// jRowHeight defines the height of the rendered rows.
json // Element
NuiList(
json jTemplate, // NuiListTemplateCell[] (max: 16)
json jRowCount, // Bind:Int
float fRowHeight = NUI_STYLE_ROW_HEIGHT,
int bBorder = TRUE,
int nScroll = NUI_SCROLLBARS_Y // Note: Cannot be AUTO.
);
Return
json Element
Parameters
- jTemplate
- JsonArray of NuiListTemplateCell
- jRowCount
- JsonInt or NuiBind (Note: don't get it confused with an NWN int)
- fRowHeight
- NUI_STYLE_* (Note: this is just a [float]], so like can use custom size? Not tested)
- bBorder
- NWN "bool" (ie, int)
- nScroll
- NUI_SCROLLBARS_* (Note: Cannot be NUI_SCROLLBARS_AUTO)
Description
Creates a list view of elements.
Remarks
Version
This function was added in 1.85.8193.31 of NWN:EE.
Example
See Also
functions: |