getController
Gets a specific controller item of a page.
Description
vcc.getController(page: string, name: string): Controller | null
Searches page for controller by name. If found, returns the controller, otherwise returns null.
See Types of Controls for a list of available controls.
Parameters
name
Name of control item.
page
The page name which contains the controller item. If missing, the current page is used instead.
Return values
Controller – The control item or null if there is no such control item.
Example
We want to refresh the control in the news page.
vcc.getController('news', 'actual').refresh();
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.