APIs

Show:

Library for the FlxNavElement web component.

Constructor

flexygo.ui.wc.FlxNavElement

() FlxNavElement

Returns:

FlxNavElement:

Methods

attributeChangedCallback

(
  • attrName.
  • oldVal.
  • newVal.the
)

Fires when the attribute value of the element is changed.

Parameters:

  • attrName. String

    The attribute name

  • oldVal. String

    The old value

  • newVal.the String

    new value

connectedCallback

()

Fires when element is attached to DOM

getChildNodes

(
  • json.
)
String

Gets HTML string with child nodes as ul an li elements.

Parameters:

  • json. JSON

    json with the nodes

Returns:

String:

Returns nodes built as HTML ul element string

getIcon

(
  • IconClass.
  • IconPath.
)

get Node icon

Parameters:

  • IconClass. String

    The icon class

  • IconPath. String

    The icon path

getNetworkNodeFromNavigationNode

(
  • nn.
)

Creates a network node from a navigation node

Parameters:

getTreeNavigate

(
  • json.
)
String

Gets HTML string with child nodes with a tree display.

Parameters:

  • json. JSON

    json with the nodes

Returns:

String:

Returns nodes built as HTML tree

hasChildNodesClass

(
  • json.
)
String

Sets class if parent tree node has childnodes.

Parameters:

  • json. JSON

    json with the nodes

Returns:

String:

Returns class item-closed when no child nodes

hasChildNodesLiClass

(
  • json.
)
String

Sets class if parent tree node has childnodes.

Parameters:

  • json. JSON

    json with the nodes

Returns:

String:

Returns class parent_li when no child nodes

loadNodes

()

Does post to load Nodes.

loadNodesNetworkMode

(
  • ret.
)

loads Nodes with in network mode post result.

Parameters:

  • ret. Array

    an array with the nodes

loadNodesNetworkMode

(
  • nn.
  • parent.
)

Adds a node in network mode

Parameters:

loadNodesNetworkMode

(
  • nn.
  • parent.
)

Expands a node in network mode

Parameters:

loadNodesRet

(
  • ret.
)

loads Nodes with post result.

Parameters:

  • ret. Array

    an array with the nodes

navItemClick

(
  • navItem.
  • navBar.
)

Sets click action depending on node type.

Parameters:

  • navItem. Object

    the nav item

  • navBar. Objects

    The nav bar

onNavResize

()

Changes class atribbutes when display is resized.

refresh

()

Refresh de webcomponent.

resizeNetwork

()

Resizes the network graphic

setAdditionalButtons

(
  • mode.
)

set Additional Buttons

Parameters:

  • mode. String

    Navigator mode

Properties

connected

Boolean

Set when component is attached to DOM