Usage
Signature:
interface NBoxNodeElement<K=any>
Generic Parameters
Parameter Description K Type of key of the dataprovider
Typescript Import Format
//To typecheck the element APIs, import as below.
import { NBoxNodeElement } from "ojs/ojnbox";
//For the transpiled javascript to load the element's module, import as below
import "ojs/ojnbox";
For additional information visit:
Styling
-
CSS Variables
See JET CSS Variables for additional details.
Name | Type | Description |
---|---|---|
--oj-n-box-node-bg-color |
<color> | Nbox node background color |
Attributes
-
border-color :string
-
The color of the node border.
- Default Value:
''
-
border-width :number
-
The width of the node border.
- Default Value:
0
-
categories :Array.<string>
-
An optional array of additional category strings corresponding to this data item. This enables highlighting and filtering of individual data items through interactions with other visualization elements. If not defined, the node id is used.
- Default Value:
[]
-
color :string
-
The background color of this node.
- Default Value:
''
-
column :string
-
The column id for this node.
- Default Value:
''
-
group-category :string
-
The group category this node belongs to. Nodes with the same groupCategory will be grouped together.
- Default Value:
''
-
icon :Object
-
Defines the primary icon for this node.
- Default Value:
null
-
icon.background :"neutral"|"red"|"orange"|"forest"|"green"|"teal"|"blue"|"slate"|"mauve"|"pink"|"purple"|"lilac"|"gray"|string icon.background :"neutral"|"orange"|"green"|"teal"|"blue"|"slate"|"pink"|"purple"|"lilac"|"gray"|string
-
The background pattern displayed with the initials of this icon.
- Deprecated:
-
Since Description 10.0.0
This value will be removed in the future. Please use other colors. - Deprecated:
-
Since Description 10.0.0
This value will be removed in the future. Please use other colors. - Deprecated:
-
Since Description 10.0.0
This value will be removed in the future. Please use other colors. - Default Value:
'neutral'
Supported Values:
Value Argument Description blue
<optional>
forest
<optional>
gray
<optional>
green
<optional>
lilac
<optional>
mauve
<optional>
neutral
<optional>
orange
<optional>
pink
<optional>
purple
<optional>
red
<optional>
slate
<optional>
teal
<optional>
-
icon.border-color :string
-
The border color of this icon.
-
icon.border-radius :string
-
The border radius of this icon. CSS border-radius values accepted. Note that non-% values (including unitless) get interpreted as 'px'.
-
icon.border-width :number
-
The border width of this icon.
-
icon.color :string
-
The fill color of this icon.
-
icon.height :number|null
-
The height of this icon.
-
icon.initials :string
-
The initials displayed on this icon if no image source provided.
- Default Value:
''
-
icon.opacity :number
-
The opacity of this icon.
-
icon.pattern :"largeChecker"|"largeCrosshatch"|"largeDiagonalLeft"|"largeDiagonalRight"|"largeDiamond"|"largeTriangle"|"none"|"mallChecker"|"smallCrosshatch"|"smallDiagonalLeft"|"smallDiagonalRight"|"smallDiamond"|"smallTriangle"
-
The fill pattern of this icon.
- Default Value:
"none"
Supported Values:
Value largeChecker
largeCrosshatch
largeDiagonalLeft
largeDiagonalRight
largeDiamond
largeTriangle
mallChecker
none
smallCrosshatch
smallDiagonalLeft
smallDiagonalRight
smallDiamond
smallTriangle
-
icon.shape :"circle"|"diamond"|"ellipse"|"human"|"plus"|"rectangle"|"square"|"star"|"triangleDown"|"triangleUp"|string
-
The shape of this icon. Can take the name of a built-in shape or the SVG path commands for a custom shape.
-
icon.source :string
-
The URL of an image to display for this icon.
-
icon.svg-class-name :string
-
The CSS style class defining the style of this icon. Will not be applied if initials are specified.
- Default Value:
''
-
icon.svg-style :Partial<CSSStyleDeclaration>
-
The CSS style object defining the style of this icon. Only SVG CSS style properties are supported. Will not be applied if initials are specified. The default value comes from the CSS and varies based on theme.
-
icon.width :number|null
-
The width of this icon.
-
indicator-color :string
-
The background color for the indicator section of this node.
- Default Value:
''
-
indicator-icon :Object
-
Defines the indicator icon for this node.
- Default Value:
null
-
indicator-icon.border-color :string
-
The border color of this indicator icon.
-
indicator-icon.border-radius :string
-
The border radius of this indicator icon. CSS border-radius values accepted. Note that non-% values (including unitless) get interpreted as 'px'.
-
indicator-icon.border-width :number
-
The border width of this indicator icon.
-
indicator-icon.color :string
-
The fill color of this indicator icon.
-
indicator-icon.height :number|null
-
The height of this indicator icon.
-
indicator-icon.opacity :number
-
The opacity of this indicator icon.
-
indicator-icon.pattern :"largeChecker"|"largeCrosshatch"|"largeDiagonalLeft"|"largeDiagonalRight"|"largeDiamond"|"largeTriangle"|"none"|"smallChecker"|"smallCrosshatch"|"smallDiagonalLeft"|"smallDiagonalRight"|"smallDiamond"|"smallTriangle"
-
The fill pattern of this indicator icon.
Supported Values:
Value largeChecker
largeCrosshatch
largeDiagonalLeft
largeDiagonalRight
largeDiamond
largeTriangle
none
smallChecker
smallCrosshatch
smallDiagonalLeft
smallDiagonalRight
smallDiamond
smallTriangle
-
indicator-icon.shape :"circle"|"diamond"|"ellipse"|"human"|"plus"|"rectangle"|"square"|"star"|"triangleDown"|"triangleUp"|string
-
The shape of this indicator icon. Can take the name of a built-in shape or the SVG path commands for a custom shape.
-
indicator-icon.source :string|null
-
The URL of an image to display for this indicator icon.
-
indicator-icon.svg-class-name :string
-
The CSS style class defining the style of this indicator icon.
-
indicator-icon.svg-style :Partial<CSSStyleDeclaration>|null
-
The CSS style object defining the style of this indicator icon. Only SVG CSS style properties are supported. The default value comes from the CSS and varies based on theme.
-
indicator-icon.width :number|null
-
The width of this indicator icon.
-
label :string
-
The text for the node label.
- Default Value:
''
-
row :string
-
The row id for this node.
- Default Value:
''
-
secondary-label :string
-
The text for the secondary node label.
- Default Value:
''
-
(nullable) short-desc :(string | ((context: ojNBox.NodeShortDescContext<K>) => string))
-
The description of the node. Will be lazily created if a function is used. This is used for customizing the tooltip text.
- Default Value:
''
-
svg-class-name :string
-
The CSS style class defining the style of the node.
- Default Value:
''
-
svg-style :Partial<CSSStyleDeclaration>|null
-
The CSS style object defining the style of the node. Only SVG CSS style properties are supported.
- Default Value:
null
-
x-percentage :number|null
-
An optional horizontal position (as a percentage) to be used in the average position calculation when grouping across cells.
- Default Value:
null
-
y-percentage :number|null
-
An optional vertical position (as a percentage) to be used in the average position calculation when grouping across cells.
- Default Value:
null