flare.viur.widgets.tree
¶
Module Contents¶
Classes¶
Base Widget that renders a tree. |
|
Base Widget that renders a tree. |
- class flare.viur.widgets.tree.TreeItemWidget(module, data, structure, widget, *args, **kwargs)¶
Bases:
flare.html5.Li
- setStyle(self)¶
Is used to define the appearance of the element.
- additionalDropAreas(self)¶
Drag and Drop areas.
- markDraggedElement(self)¶
Mark the current dragged Element.
- unmarkDraggedElement(self)¶
- onDragStart(self, event)¶
- onDragEnd(self, event)¶
- onDragOver(self, event)¶
Test wherever the current drag would mean.
“make it a child of us”, “insert before us” or “insert after us” and apply the correct classes.
- onDragLeave(self, event)¶
Remove all drop indicating classes.
- disableDragMarkers(self)¶
- onDrop(self, event)¶
We received a drop.
Test wherever its means “make it a child of us”, “insert before us” or “insert after us” and initiate the corresponding NetworkService requests.
- EntryIcon(self)¶
- toggleArrow(self)¶
- buildDescription(self)¶
Creates the visual representation of our entry.
- onClick(self, event)¶
- onDblClick(self, event)¶
- toggleExpand(self)¶
Toggle a Node and request if needed child elements.
- class flare.viur.widgets.tree.TreeLeafWidget(module, data, structure, widget, *args, **kwargs)¶
Bases:
TreeItemWidget
- skelType = leaf¶
- setStyle(self)¶
Leaf have a different color.
- toggleArrow(self)¶
Leafes cant be toggled.
- EntryIcon(self)¶
Leafs have a different Icon.
- class flare.viur.widgets.tree.TreeNodeWidget(module, data, structure, widget, *args, **kwargs)¶
Bases:
TreeItemWidget
- skelType = node¶
- class flare.viur.widgets.tree.TreeWidget(module, rootNode=None, node=None, context=None, *args, **kwargs)¶
Bases:
flare.html5.Div
Base Widget that renders a tree.
- nodeWidget¶
- leafWidget¶
- setSelector(self, callback, multi=True, allow=None)¶
Configures the widget as selector for a relationalBone and shows it.
- static canHandle(moduleName, moduleInfo)¶
- class flare.viur.widgets.tree.BrowserLeafWidget(module, data, structure, widget, *args, **kwargs)¶
Bases:
TreeLeafWidget
- setStyle(self)¶
Leaf have a different color.
- class flare.viur.widgets.tree.BrowserNodeWidget(module, data, structure, widget, *args, **kwargs)¶
Bases:
TreeNodeWidget
- setStyle(self)¶
Is used to define the appearance of the element.
- class flare.viur.widgets.tree.BreadcrumbNodeWidget(module, data, structure, widget, *args, **kwargs)¶
Bases:
TreeNodeWidget
- setStyle(self)¶
Is used to define the appearance of the element.
- class flare.viur.widgets.tree.TreeBrowserWidget(module, rootNode=None, node=None, context=None, *args, **kwargs)¶
Bases:
TreeWidget
Base Widget that renders a tree.
- leafWidget¶
- nodeWidget¶
- static canHandle(module, moduleInfo)¶