new Tree(app, engine, view)
- Description:
Treeview rendering
Parameters:
Name | Type | Description |
---|---|---|
app |
Simplicite.Ajax | Ajax service |
engine |
Simplicite.UI.Engine | Main controller |
view |
Simplicite.UI.View.Main | View services |
Methods
diff(ctn, p, data)
- Description:
Display a tree difference
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ctn |
String | jQuery | Optional container |
||||||||||||||||||||||||||||||
p |
Object | Options Properties
|
||||||||||||||||||||||||||||||
data |
Object | Difference tree |
display(ctn, o, id, tv, p, cbk)
- Description:
Object treeview rendering
Parameters:
Name | Type | Description |
---|---|---|
ctn |
jquery | container |
o |
Object | business object (where o.item is a tree) |
id |
string | row Id |
tv |
Object | treeview definition { name } |
p |
Object | options |
cbk |
function | optional callback |