Constructor
new TreeView(settingsopt)
Parameters:
Name |
Type |
Attributes |
Default |
Description |
settings |
object
|
<optional>
|
{}
|
the following settings are available:
Properties
Name |
Type |
Attributes |
Default |
Description |
animate |
boolean
|
<optional>
|
|
true - allows you to open/close a tree branch smoothly. |
paddingInlineStart |
string
|
<optional>
|
"40px"
|
right shift of the tree branch. Example: "10px" |
cookie |
boolean
|
<optional>
|
|
true - remember the open/close tree branch state after closing of the web page. |
|
- Source:
Methods
setCanvas(branchId, myThree, settingsopt)
Sets a canvas in the tree branch
Parameters:
Name |
Type |
Attributes |
Default |
Description |
branchId |
number
|
|
|
tree branch identifier |
myThree |
MyThree
|
|
|
MyThree instance. |
settings |
object
|
<optional>
|
{}
|
the following settings are available:
Properties
Name |
Type |
Attributes |
Default |
Description |
width |
number
|
<optional>
|
300
|
width of the canvas |
height |
number
|
<optional>
|
150
|
height of the canvas |
|
- Source: