This package contains the necessary classes to configure an Org Chart VTABLE

1 Org chart

Example
Copy
return new Ax.ext.view.orgChart.Builder()
    .setLineColor('black')
    .setLineWidth(3)
    .setLevelChart(2)
    .setBtnContentFunction(`<div class="btnContent" style="color:#000000;background-color: #FFEB3B;"> <span class="fontSizeBtnContent" >\${
							node.children
								? '<i class="fas fa-angle-up"></i>'
								: '<i class="fas fa-angle-down"></i>'
						}</span> \${node.data._directSubordinates}  </div>`)
    .setBoxRenderFunction(`
            <div class="boxContent" style="width:\${width}px;height:\${height}px; background-color: \${tree_level > 1 ? 'orange' : '#8BC34A'}">

               <div class="imgContainer" ></div>
               <!-- img style -->
              <img src="\${data.user_image}" class="imgStyle"  />

                <!-- nom de la persona -->
              <div class="nameContainer" > \${
							data.user_name
						}</div>

                <!-- description {data.user_description}-->
                <div class="descCont" style="width:\${width - 30}px;" data-name="\${data.user_name}">
                  \${data.user_description}
                </div>

           </div>
  `)
    .setBoxSize(
        new Ax.ext.view.orgChart.BoxSize()
            .setWidth(300)
            .setHeight(100)
            .setChildrenMargin(25)
            .setCompactMarginBetween(50)
            .setCompactMarginPair(40)
            .setNeighbourMargin(30)
            .setSiblingsMargin(35)
    )
    .setColumnNames(
        new Ax.ext.view.orgChart.ColumnNames()
            .setNodeIdColumn("user_id")
            .setParentColumn("supervisor_id")
            .setNameColumn("user_code")
            .setImgColumn("user_image")
            .setDescColumn("user_code")
    )
    .build();

1.1 Ax.ext.view.orgChart.BoxSize

Error

Ax.ext.view.orgChart.BoxSize: not found

1.2 Ax.ext.view.orgChart.Builder

Error

Ax.ext.view.orgChart.Builder: not found

1.3 Ax.ext.view.orgChart.ColumnNames

Error

Ax.ext.view.orgChart.ColumnNames: not found