Version: 4.1.0
VanillaRenderer
Properties
Methods
#
Properties#
panelsArray of panels
Type: Array<Panel>
See:
#
panelCountCount of panels
Type: number
#
alignA Panel's align value that applied to all panels
Type: Constants.ALIGN | string | number
#
Methods#
renderRender panel elements inside the camera element
Returns: this
#
initInitialize Renderer
Returns: this
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
flicking | Flicking | no | An instance of Flicking |
#
destroyDestroy Renderer and return to initial state
Returns: void
#
getPanelReturn the Panel at the given index. null
if it doesn't exists.
Returns: Panel | null
- Panel at the given index
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
index | number | no |
See:
#
updatePanelSizeUpdate all panel sizes
Returns: this
#
batchInsertInsert new panels at given index
This will increase index of panels after by the number of panels added
Returns: Array<Panel>
- An array of prepended panels
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
index | number | no | Index to insert new panels at | |
elements | Array<any> | no | An array of element or framework component with element in it |
#
batchRemoveRemove the panel at the given index
This will decrease index of panels after by the number of panels removed
Returns: Panel[]
- An array of removed panels
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
index | number | no | Index of panel to remove | |
deleteCount | number | yes | 1 | Number of panels to remove from index |