Namespace: NavigationComponent

WebPDF. NavigationComponent

Methods


<static> expand(isExpand)

Expand or collapse a panel by name.

Parameters:
Name Type Description
isExpand Boolean

True expand panel, false collapse panel.

Example
var panel = WebPDF.NavigationComponent.getPanel('panelName');
//expand panel
panel.expand(true); 
//collapse panel
panel.expand(false);

<static> getPanel(panelName)

Get panel by panel name.

Parameters:
Name Type Description
panelName String

Optional items : bookmark,thumb,search,commentlist

Example
var panel = WebPDF.NavigationComponent.getPanel('panelName');

<static> isExpand()

Whether the navigation panel is expanded

Returns:
Type
boolean

<static> toggle()

Expand or collapse panel depending on either of the navigation's status

Example
WebPDF.NavigationComponent.toggle()