getController

Reading Time: 1 minute

Gets a specific control item of a page.

Description

vcc.getController(name: string, [page]: string): Controller

Searches array for element and returns true if successful.

See Types of Controls for a list of available controls.

Parameters

name
Name of control item.

page
The page name which contains the control 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();

There are no comments yet.
Subscribe to our newsletter
or Contact us!
Please note that by subscribing to our newsletter, you agree to receive regular email messages from VCC Live® about service related news and updates. By subscribing to our newsletter, you also agree that VCC Live® will use your data in accordance with the applicable Privacy Policy until you unsubscribe from the newsletter.