arya-blue
luna-amber
luna-blue
luna-green
luna-pink
nova-dark
nova-light
saga-blue
vela-blue
OrgChart - Variable Width Nodes
Nodes can have different widths to accommodate varying content lengths. Use the className property and custom CSS to define node widths based on content requirements.
How it works

Nodes can have different widths to accommodate varying content lengths. Use the className property on each node and define custom CSS rules to set different widths for the title and content sections.

  • wide-node - 240px width for longer content
  • standard-node - 160px width for medium content
  • narrow-node - 100px width for short content

Note: The default node width is 130px. You can customize this by targeting .orgchart .your-class-name .title and .orgchart .your-class-name .content in your CSS.

Source

<style type="text/css">
            .orgchart .wide-node .title,
            .orgchart .wide-node .content {
                width: 240px;
            }

            .orgchart .standard-node .title,
            .orgchart .standard-node .content {
                width: 160px;
            }

            .orgchart .narrow-node .title,
            .orgchart .narrow-node .content {
                width: 100px;
            }
        </style>

        <pe:orgchart id="orgChart"
                     widgetVar="variableWidthWidget"
                     value="#{variableWidthOrgchartController.orgChartModel}"
                     nodeId="id"
                     nodeContent="title"
                     nodeTitle="name"
                     style="height:400px">
        </pe:orgchart>
            
Components and more
Use Cases
Documentation pe:
Attributes (move mouse over the names to see data types)
Name Description
No attributes available for this component.
PrimeFaces Extensions Showcase - © 2011-2025,PrimeFaces: 15.0.16,PrimeFaces Extensions: 15.0.17-SNAPSHOT,JSF: Apache MyFaces JSF-2.3 Core Impl 2.3.10,Server: Apache Tomcat (TomEE)/9.0.82 (8.0.16),Build time: 2026-06-21 03:14