Reference Source
public class | source

RenderService

A TreeViewPlugin render class.

Method Summary

Public Methods
public

addChildren(element: *, nodes: *)

public

collapse(element: *, expandHandler: *, collapseHandler: *)

public

createDisabledNodeElement(rootName: *): *

public

createNodeElement(node: *, expandHandler: *, checkHandler: *, contextmenuHandler: *, titleClickHandler: *): *

public
public

expand(element: *, expandHandler: *, collapseHandler: *)

public

getId(element: *): *

public

getIdFromCheckbox(element: *): *

public

getSwitchElement(nodeId: *): *

public

isChecked(element: *): *

public

isExpanded(element: *): *

public

setCheckbox(nodeId: *, checked: *, indeterminate: boolean)

public

setHighlighted(nodeId: *, highlighted: *)

public

setXRayed(nodeId: *, xrayed: *)

Public Methods

public addChildren(element: *, nodes: *) source

Params:

NameTypeAttributeDescription
element *
nodes *

public collapse(element: *, expandHandler: *, collapseHandler: *) source

Params:

NameTypeAttributeDescription
element *
expandHandler *
collapseHandler *

public createDisabledNodeElement(rootName: *): * source

Params:

NameTypeAttributeDescription
rootName *

Return:

*

public createNodeElement(node: *, expandHandler: *, checkHandler: *, contextmenuHandler: *, titleClickHandler: *): * source

Params:

NameTypeAttributeDescription
node *
expandHandler *
checkHandler *
contextmenuHandler *
titleClickHandler *

Return:

*

public createRootNode(): * source

Return:

*

public expand(element: *, expandHandler: *, collapseHandler: *) source

Params:

NameTypeAttributeDescription
element *
expandHandler *
collapseHandler *

public getId(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public getIdFromCheckbox(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public getSwitchElement(nodeId: *): * source

Params:

NameTypeAttributeDescription
nodeId *

Return:

*

public isChecked(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public isExpanded(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public setCheckbox(nodeId: *, checked: *, indeterminate: boolean) source

Params:

NameTypeAttributeDescription
nodeId *
checked *
indeterminate boolean
  • optional
  • default: false

public setHighlighted(nodeId: *, highlighted: *) source

Params:

NameTypeAttributeDescription
nodeId *
highlighted *

public setXRayed(nodeId: *, xrayed: *) source

Params:

NameTypeAttributeDescription
nodeId *
xrayed *