Link

Class representing a Link in a Page.

Functions

# Detail Page (Canvas) Detail Page (Standard)

getId() → {String}

Get the id of link

id

String
Examples

SampleCopycopied

var linkObj = ZDK.Page.getLinks();
linkObj[0].getId();

Output

11021234562

# Detail Page (Canvas) Detail Page (Standard)

getName() → {String}

Get the name of link

name

String
Examples

SampleCopycopied

var linkObj = ZDK.Page.getLinks();
linkObj[0].getName();

Output

my_link

# Detail Page (Canvas) Detail Page (Standard)

click()

Initiate link click event

Example

SampleCopycopied

var linkObj = ZDK.Page.getLinks();
linkObj[0].click();

# Detail Page (Canvas) Detail Page (Standard)

disable()

Disable the link

Example

SampleCopycopied

var linkObj = ZDK.Page.getLinks();
linkObj[0].disable();

# Detail Page (Canvas) Detail Page (Standard)

enable()

Enable the link

Example

SampleCopycopied

var linkObj = ZDK.Page.getLinks();
linkObj[0].enable();