tracking-code-which-will-go-to-the-HEAD ComponentDefinition

Class

ComponentDefinition

ComponentDefinition(propsopt)

Definition of Component's data and constraints
Constructor

# new ComponentDefinition(propsopt)

Default constructor.
Parameters:
Name Type Attributes Description
props object <optional>
Object that contains all properties to set.
type string <optional>
The type of the associated component.
icon string <optional>
The icon's name of this type of component.
model string <optional>
Name of SVG template to render this type of component.
displayName string <optional>
Display name of the component.
description string <optional>
Explanation of the component.
categories Array.<string> <optional>
Categories of the component.
tags Array.<string> <optional>
Tags of the component.
url string <optional>
URL of the documentation of the component.
parentTypes Array.<string> <optional>
The list of types that can be the parent.
childrenTypes Array.<string> <optional>
The list of types that can be the children.
definedAttributes Array.<ComponentAttributeDefinition> <optional>
Defined attributes for this type.
isContainer boolean <optional>
Boolean means if this type can be a parent. instantiated components.
displayType string <optional>
Use the given displayType to override the component's rendering. Allowed values: workflow|null.
workflowDirection string <optional>
Workflow direction, can be horizontal or vertical. Default value is horizontal.
linkModel string <optional>
Name of SVG template to render the link of this component, only used in case of workflow.
defaultWidth number <optional>
Default width that will be set on creation.
defaultHeight number <optional>
Default height that will be set on creation.
minWidth number <optional>
Minimum width of the component.
minHeight number <optional>
Minimum height of the component.
reservedWidth number <optional>
Width reserved in the component for display, only use for container.
reservedHeight number <optional>
Height reserved in the component for display, only use for container.
margin number <optional>
Margin inside the components zone, only used for container.
gap number <optional>
Gap between component inside the components zone, only used for container.

View Source models/ComponentDefinition.js, line 4

Members

Array.<string>

# categories

Categories of the component.

View Source models/ComponentDefinition.js, line 125

Array.<string>

# childrenTypes

The list of types that can be the children.
Default Value:
  • []

View Source models/ComponentDefinition.js, line 151

number

# defaultHeight

Default height that will be set on creation.

View Source models/ComponentDefinition.js, line 196

number

# defaultWidth

Default width that will be set on creation.

View Source models/ComponentDefinition.js, line 190

Array.<ComponentAttributeDefinition>

# definedAttributes

Defined attributes for this type.
Default Value:
  • []

View Source models/ComponentDefinition.js, line 158

string

# description

Explanation of the component.

View Source models/ComponentDefinition.js, line 119

string

# displayName

Display name of the component.

View Source models/ComponentDefinition.js, line 113

string

# displayType

Name of a specific display behavior.

View Source models/ComponentDefinition.js, line 171

number

# gap

Gap between component inside the components zone, only used for container.

View Source models/ComponentDefinition.js, line 232

string

# icon

The icon's name of this type of component.

View Source models/ComponentDefinition.js, line 101

boolean

# isContainer

Boolean means if this type can be a parent.
Default Value:
  • false

View Source models/ComponentDefinition.js, line 165

string | null

# linkModel

Name of SVG template to render the link of this component, only used in case of workflow.

View Source models/ComponentDefinition.js, line 184

number

# margin

Margin inside the components zone, only used for container.

View Source models/ComponentDefinition.js, line 226

number

# minHeight

Minimum height of the component.

View Source models/ComponentDefinition.js, line 208

number

# minWidth

Minimum width of the component.

View Source models/ComponentDefinition.js, line 202

string

# model

Name of SVG model to render this type of component.

View Source models/ComponentDefinition.js, line 107

Array.<string>

# parentTypes

The list of types that can be the parent.
Default Value:
  • []

View Source models/ComponentDefinition.js, line 144

number

# reservedHeight

Height reserved in the component for display, only used for container.

View Source models/ComponentDefinition.js, line 220

number

# reservedWidth

Width reserved in the component for display, only used for container.

View Source models/ComponentDefinition.js, line 214

Array.<string>

# tags

Tags of the component.

View Source models/ComponentDefinition.js, line 131

string

# type

The type of the associated component.

View Source models/ComponentDefinition.js, line 95

string

# url

URL of the documentation of the component.

View Source models/ComponentDefinition.js, line 137

string

# workflowDirection

Workflow direction, can be horizontal or vertical.
Default Value:
  • horizontal

View Source models/ComponentDefinition.js, line 178