Skip to main content

OrgChartItem

shadow

Komponent OrgChartItem slúži na zobrazenie jednej položky v organizačnej štruktúre. Môže obsahovať rôzne typy uzlov a prepojenia medzi nimi. Tento komponent je súčasťou OrgChart komponentu, ktorý slúži na zobrazenie celej organizačnej štruktúry.

Pre viac informácií o použití OrgChartItem prejdite na stránku dokumentácie elementu OrgChart.

Atribúty a Vlastnosti

boss

DescriptionSpecifies whether the item is a parent element in the organizational structure.
Attributeboss
Typeboolean
Defaultfalse

Eventy

No events available for this component.

Metódy

setupAttributes

DescriptionSets the attributes for the component.
SignaturesetupAttributes() => void

beforeDraw

DescriptionIt is executed before the component is rendered.
SignaturebeforeDraw() => void

draw

DescriptionRenders a component for an organizational structure item.
Signaturedraw() => DocumentFragment

afterDraw

DescriptionIt is executed after the component is rendered.
SignatureafterDraw() => void

toggleChildren

DescriptionToggles the display of the descendants of an organizational structure item.
SignaturetoggleChildren(e: Event) => void

CSS Shadow Parts

NameDescription
nativeRefers to the item's main container.
cardRefers to the item tab.
expanderRefers to the button for expanding descendants.

CSS Custom Vlastnosti

NameDescription
--wje-orgchart-item-widthWidth of organisational structure heading
--wje-orgchart-item-height-lineHeight of the line between the items of the organisational structure
--wje-orgchart-item-border-radiusRounding the corners of an organisation chart item
--wje-orgchart-item-backgroundBackground colour of the organisational structure item
--wje-orgchart-item-boss-backgroundBackground colour of the parent item of the organisational structure
--wje-orgchart-item-boss-borderBoundary of the superordinate item of the organisational structure
--wje-orgchart-item-hover-backgroundBackground colour of the organisation chart item when mouse over
--wje-orgchart-item-hover-borderOrganizational structure item bounding box on mouseover
--wje-orgchart-item-highlight-backgroundBackground colour of the highlighted organisational structure item
--wje-orgchart-item-highlight-borderBorder of the highlighted item of the organisational structure
--wje-orgchart-item-expander-sizeSize of the button to expand the descendants

Sloty

NameDescription
``The default slot for the contents of the organizational structure item.
childSlot for the descendants of an organizational structure item.