VirtualManager
A manager class to add / remove virtual panels
Constructor
constructor(flicking: Flicking, options: VirtualOptions | null);
Constructs a new instance of the VirtualManager class
Properties
panelClass
Type: string
The class name that will be applied to rendered panel elements
Default: "flicking-panel"
Methods
append
append(count?: number): VirtualPanel[]
Add new virtual panels at the end of the list
Parameters:
count(number) - The number of panels to add
Returns: The new panels added
hide
hide(index: number): void
init
init(): void
insert
insert(index: number, count?: number): VirtualPanel[]
Add new virtual panels at the given index
Parameters:
-
index(number) - -
count(number) - The number of panels to add
Returns: The new panels added
prepend
prepend(count?: number): VirtualPanel[]
Add new virtual panels at the start of the list
Parameters:
count(number) - The number of panels to add
Returns: The new panels added
remove
remove(index: number, count: number): VirtualPanel[]
Remove panels at the given index
Parameters:
-
index(number) - -
count(number) - The number of panels to remove
Returns: The panels removed
show
show(index: number): void