FlexberryTreeComponent Class
Flexberry tree component with Semantic UI accordion style. Component must be used in combination with flexberry-treenode component, because it's only a wrapper for those tree nodes, which are placed on the same tree level.
Usage: templates/my-form.hbs
Item Index
Methods
Properties
- _availableDomEvents
- _componentWrapperIsAvailable
- _dynamicActions
- _dynamicPropertiesMetadata
- _eventsMetadata
- _hasContent
- _hasFooter
- _hasHeader
- _hasNodes
- _isRoot
- _openedModalDialog
- _requiredActions
- animateChildren
- animationDuration
- classNameBindings
- classNames
- collapsible
- dynamicActions
- dynamicProperties
- exclusive
- flexberryClassNames static
- isTagless
- nodes
- placeholder
Methods
_accordionPropertiesDidChange
()
private
Reinitializes Semantic UI accordion on component's wrapping
_actionHandlerIsDefined
-
options
Parameters:
Returns:
_addDynamicProperty
-
propertyName
Parameters:
-
propertyNameStringName of dynamic property that must be added.
_destroyAccordion
()
private
Destroys Semantic UI accordion on component's wrapping
_dynamicPropertiesDidChange
()
private
_initializeAccordion
()
private
Initializes Semantic UI accordion on component's wrapping
_removeDynamicProperties
()
private
_removeDynamicProperty
-
propertyName
Parameters:
-
propertyNameStringName of dynamic property that must be removed.
attachEventHandler
-
options
Parameters:
-
optionsObjectMethod options.-
eventTargetObjectDOM-element (jQuery-object) for which event-handler must be attached.
-
eventNameStringEvent name.
-
eventHandlerFunctionEvent handler.
-
closeModalDialog
()
createdModalDialog
-
modalDialog
Parameters:
-
modalDialogJQueryCreated modal window.
detachAllEventHandlers
()
detachEventHandler
-
options
Parameters:
-
optionsObjectMethod options.-
eventTargetObjectDOM-element (jQuery-object) from which event-handler must be detached.
-
eventNameStringEvent name.
-
eventHandlerFunctionEvent handler.
-
send
-
actionName -
args
`
Parameters:
-
actionNameStringName of the action that must be triggered. -
argsArguments that must be passed to action.
Returns:
Properties
_availableDomEvents
Object
private
_componentWrapperIsAvailable
Boolean
private
_dynamicActions
Object
private
_dynamicPropertiesMetadata
Object[]
private
Default: null
_eventsMetadata
Object[]
private
Default: null
_hasContent
Boolean
private
Flag: indicates whether some nested content is defined (some yield markup or {{#crossLink "FlexberryTreeComponent/nodes:property"}}'nodes'{{/childNodes}} are defined).
_hasHeader
Boolean
private
Flag: indicates whether some nested content for header is defined (some yield markup for 'header').
_hasNodes
Boolean
private
Flag: indicates whether some {{#crossLink "FlexberryTreeComponent/nodes:property"}}tree 'nodes'{{/childNodes}} are defined.
_openedModalDialog
JQuery
Default: undefined
_requiredActions
String[]
Default: null
animateChildren
Boolean
Flag: indicates whether nested child nodes content opacity should be animated (if true, it may cause performance issues with many nested child nodes).
Default: false
animationDuration
Number
Tree nodes expand/collapse animation duration in milliseconds.
Default: 350
classNameBindings
String[]
classNames
String[]
Component's wrapping
Any other CSS-class names can be added through component's 'class' property.
Default: ['flexberry-tree', 'accordion']
collapsible
Boolean
Flag: indicates whether it is allowed for already expanded tree nodes to collapse.
Default: true
dynamicActions
DynamicActionObject[]
Default: null
dynamicProperties
Object
Default: null
exclusive
Boolean
Flag: indicates whether only one tree node can be expanded at the same time. If true, all expanded tree nodes will be automatically collapsed, on some other node expand.
Default: false
flexberryClassNames
Object
static
Component's CSS-classes names. JSON-object containing string constants with CSS-classes names related to component's hbs-markup elements.
Sub-properties:
-
prefixStringComponent's CSS-class names prefix ('flexberry-tree').
-
wrapperStringComponent's wrapping
CSS-class name ('flexberry-tree').headerStringComponent's start toolbar CSS-class name ('flexberry-tree-header').
footerStringComponent's end toolbar CSS-class name ('flexberry-tree-footer').
placeholderStringComponent's placeholder CSS-class name ('flexberry-tree-placeholder').
BooleanisTaglessFlag: indicates whether component is tagless or not (has empty [tagName](https://emberjs.com/api/ember/release/classes/Component#property_tagName) or not).
FlexberryTreenodeObjectnodesTree nodes. This property is optional and must be used when there are too many child nodes, and you don't want to define them explicitly in the .hbs markup, then you can define nodes array somewhere in code & pass defined array to this component's property.
Default: null
StringplaceholderComponent's placeholder. Will be displayed if nested tree nodes are not defined.
Default: t('components.flexberry-tree.placeholder')
Flexberry Documentation