flexygo.ui.wc.FlxNavElement Class
Library for the FlxNavElement web component.
Constructor
Item Index
Methods
- attributeChangedCallback
- connectedCallback
- getChildNodes
- getIcon
- getNetworkNodeFromNavigationNode
- getTreeNavigate
- hasChildNodesClass
- hasChildNodesLiClass
- init
- loadNodes
- loadNodesNetworkMode
- loadNodesNetworkMode
- loadNodesNetworkMode
- loadNodesRet
- navItemClick
- onNavResize
- refresh
- resizeNetwork
- setAdditionalButtons
Properties
Methods
attributeChangedCallback
-
attrName.
-
oldVal.
-
newVal.the
Fires when the attribute value of the element is changed.
Parameters:
-
attrName.
StringThe attribute name
-
oldVal.
StringThe old value
-
newVal.the
Stringnew value
connectedCallback
()
Fires when element is attached to DOM
getChildNodes
-
json.
Gets HTML string with child nodes as ul an li elements.
Parameters:
-
json.
JSONjson with the nodes
Returns:
Returns nodes built as HTML ul element string
getIcon
-
IconClass.
-
IconPath.
get Node icon
Parameters:
-
IconClass.
StringThe icon class
-
IconPath.
StringThe icon path
hasChildNodesClass
-
json.
Sets class if parent tree node has childnodes.
Parameters:
-
json.
JSONjson with the nodes
Returns:
Returns class item-closed when no child nodes
hasChildNodesLiClass
-
json.
Sets class if parent tree node has childnodes.
Parameters:
-
json.
JSONjson with the nodes
Returns:
Returns class parent_li when no child nodes
init
()
Init the webcomponent.
loadNodes
()
Does post to load Nodes.
loadNodesNetworkMode
-
ret.
loads Nodes with in network mode post result.
Parameters:
-
ret.
Arrayan array with the nodes
loadNodesNetworkMode
-
nn.
-
parent.
Adds a node in network mode
Parameters:
-
nn.
flexygo.api.navigation.NavigationNodeNavigation node to add
-
parent.
FlxAreaNodeParent network node
loadNodesNetworkMode
-
nn.
-
parent.
Expands a node in network mode
Parameters:
-
nn.
flexygo.api.navigation.NavigationNodeNavigation node to add
-
parent.
FlxAreaNodeParent network node
loadNodesRet
-
ret.
loads Nodes with post result.
Parameters:
-
ret.
Arrayan array with the nodes
refresh
()
Refresh de webcomponent.
resizeNetwork
()
Resizes the network graphic
setAdditionalButtons
-
mode.
set Additional Buttons
Parameters:
-
mode.
StringNavigator mode
Properties
connected
Boolean
Set when component is attached to DOM