Overview

This page contains the list of components, their representation in JSON and intended functionality for Dynamic Account Management v2.

The JSON data needs to be encrypted before sent back and forth between Axis and the product. Please check Account Management v2 - External APIs for the APIs and information about the encryption.

Validation

Validation rules can consist of any of the options listed below and are used when the user has modified the data and is being submitted back to the product.

Axis provides two step validation, once on the client and once on the server side before the updated data is submitted to the Product.

NameJSON TypeApplies ToRequiredDescription
maxnumberFloatNoThe maximum numeric value supported
minnumberFloatNoThe minimum numeric value supported
maxLengthnumberStringNoValidation constraint for maximum length of string data.
minLengthnumberStringNoValidation constraint for minimum length of string data
regexstringStringNo

A regular expression to apply to the value. NOTE: Regex has to use double backslashes to be valid in JSON (i.e. "[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,3}$")

requiredbooleanAll typesNo

A flag to determine if object is required. When required, an Array must have a value, a String cannot be empty or null, a Number, Date or Boolean cannot be null

descriptionstringAll typesNo

Description of validation requirements. It should cover all requirements. If not used, the default validation descriptions are used. Accepts {label} and {value} as placeholders. Value is related to the value of the validation property. For example, if regex is "[A-Z]+" and the label is "Code" then you can have "Value for Code didn't match the pattern [A-Z]+". Value is not applicable to Objects or Arrays.

Other Validations

NameJSON TypeApplies ToRequiredDescription
readOnlybooleanAll typesYesThis is component property. A value cannot be saved when readOnly is set to true
valuestringDropDownYesA DropDown value is validate whether present in the options.
confirmation.requiredbooleanAll typesNoIt will check in the client-side whether the user confirmed the changes.
note.requiredbooleanAll typesNoIt validates whether a mandatory note is set.
format.decimalsnumberNumberNoValidates whether the value has more decimals then expected.

Other Objects

Confirmation

Confirmation will prompt a modal asking the user if they really want to perform an action. The modal is combined with the note object if required.

NameJSON TypeApplies ToRequiredDescription
requiredbooleanAll typesNoIt will check in the client-side whether the user confirmed the changes.
messagestringAll typesNoA localized message alerting the user about the change or asking for confirmation before proceeding. A default localized message is presented if none is provided.

Note

Note will prompt a modal asking the user for the reasons for the action. The modal is combined with the confirmation object if required.

NameJSON TypeApplies ToRequiredDescription
requiredbooleanAll typesNoIt validates whether a mandatory note is set.
messagestringAll typesNoA localized message requesting for a reason for the change. A default localized message is presented if none is provided.
valuestringAll typesNoAn optional default note value.

Format

NameJSON TypeApplies ToRequiredDescription
decimalsnumberNumberNoDefines the decimal precision.

Component Configuration

NameJSON TypeApplies ToRequiredDescription
stepnumberNumberNoDefines the steps to increment or decrement a number.

Data Types

Components consist of scalars, collections, layouts/groups. Below is a quick chart which contains the features and brief description of each available component. 

 

NameTypeFeatures

Description

TableTABLE
  • Table
    • Define whether new items can be added
  • Row
    • Allow delete from row (the user needs to confirm whether they want to delete in a modal)
    • Edit and Add in Modal
      • Displays all editable columns in modal
      • accepts validation per item
  • Column
    • Define type (STRING, EMAIL, NUMBER, BOOLEAN, DROPDOWN, DATE, DATETIME, HYPERLINK, STATUS)
    • Default
      • Sort, filter, adjust width.
    • Optional
      • Lockable
      • Size of columns (optional)
  • Pagination
    • Client side implementation
    • Force pagination
    • Allows reps to define how much data they want to see

A tabular data display component that offers an array of features:

  • sortable and filterable columns with adjustable width
  • lockable columns (restricts column to left edge of table, while remaining columns are scrollable
  • pagination and item count display
  • validation
  • rows data can be edited, added or deleted

StringSTRING
  • Editable
  • Validation ( minLength, maxLength, regex, required )
String value display and editing
NumberNUMBER
  • Editable
  • Validation ( min, max, required )
Numerical (both integer and floats are acceptable) values input
DropdownDROPDOWN
  • Editable ( required )
A dropdown list from which a single value can be selected
DateDATE
  • Editable
  • Validation ( min, max, required )
  • Format is based on Axis user settings or browser language

Displays date string only

*values are in Unix timestamp format.

Date and TimeDATETIME
  • Editable
  • Validation ( min, max, required )
  • Format is based on Axis user settings or browser language

Displays date and time string only

*values are in Unix timestamp format.

BooleanBOOLEAN
  • Editable
  • Should have a default setting selected
For true/false, on/off values where presence/absence is desired
HyperlinkHYPERLINK
  • Always "GET"
  • Does not allow target to be "_self" ( prevents from taking over current tab)
  • Uses rel="noopener noreferrer" to avoid the opened tab to have any access back to the page of origin
Performs GET requests to a provided URL to perform an action
LayoutLAYOUT
  • Default container
  • Can have only one sublevel
  • Sublevel that is informed in the property "items", cannot have a Layout type.
  • Non-editable. That means its items must be saved individually.
  • Can't use notes, confirmation or validation
  • Layout type
    • Allows the definition of how many columns its data items should use
 
GroupGROUP
  • Editable container, similar to Layout
  • Can have only one sublevel and its items cannot be Group, Layout or Table types
  • Uses its items validation object
  • Layout type
      • Allows the definition of how many columns its data items should use

The group type is for layout purposes and allows grouping of other components.

Using groups a product may split the screen in 1/2 and 1/4, groups will follow native responsive nature

Action ButtonACTION_BUTTON
  • Makes calls using POST and pass the data along identifying the action
  • Show a notification confirming the action results
Performs POST requests to a provided information to perform an action such as reset an account password.
Status Indicator
STATUS
 Displays an indicator of service or status.
EmailEMAIL
  • Similar to the String component but built for proper email validation
Email validation

Table Component


Description: The table data type is rendered as a read-only grid (columns and rows) that is filterable. Default filter behaviour matches against all elements in a row (full-record search). The key names in the JSON objects for table row data must be the same as the "header" names for matching and ordering purposes. 

Note: Tables cannot be under another component.

Table Component
{
	"type": "TABLE",
	"id": "1",
	"canAdd": true,
	"canEdit": true,
	"canDelete": true,
	"displayable": true,
	"label": null,
	"customValues": {},	
	"confirmation": {
		"required": true,
		"message": "message string"
	},
	"note": {
		"required": true,
		"value": "",
		"message": "message string"
	},
	"columns": [{
		"property": "accountName",
		"width": 500,
		"locked": false,
		"componentModel": {
			"label": "Account Name",
			"type": "STRING",
			"displayable": true,
			"readOnly": true,
			"value": null,
			"validation": {
				"minLength": 50,
				"maxLength": 256,
				"required": true
			}
		}
	},
	{
		"property": "email",
		"locked": false,
		"componentModel": {
			"label": "Email",
			"type": "EMAIL",
			"displayable": true,
			"readOnly": false,
			"value": null,
			"validation": {
				"minLength": 50,
				"maxLength": 256,
				"required": true
			}
		}
	}],
	"rows": [{
		"id": "2",
		"canDelete": true,
		"canEdit": true,
	 	"cells": {
			"accountName":{
				"id": "3",
				"label": "Account Name",
				"type": "STRING",
				"displayable": true,
				"readOnly": false,
				"value": "value",
				"validation": {
					"required": true,
					"minLength": null,
					"maxLength": 50
				}
			},
			"email":{
				"id": "4",
				"label": "Email",
				"type": "EMAIL",
				"displayable": true,
				"readOnly": false,
				"value": "value",
				"validation": {
					"regex": null
				}
			}
		}
	}]
}
 

 

The Model for Table Component Inherits from base properties

NameTypeRequiredDescription
canAddbooleanyesIf true, allow items to be added based on the columns[].componentModel object.
canEditbooleanyesIf false, it overrides rows[].canEdit.
canDeletebooleanyesIf false, it overrides rows[].canDelete.
rowscomponent [ ]yesProvides details about table row setup as well as individual cell details and values. Contains collection of components
columnslistyes

Provides details setup details about columns

 

Model for Column

NameTypeRequiredDescription
propertystringyesA reference to the object inside of the items collection
widthintegeryesDefines a default width for a column. Users can manually change the width.
lockedbooleanyes

If true, the column will be locked to the left most edge of the table. When scrolling horizontally other columns will go behind a locked column

componentModelcomponentyesDefines the column type and the model to create an item from. These are the accepted components under a table: STRING, NUMBER, DROPDOWN, DATE, DATETIME, BOOLEAN, HYPERLINK, STATUS and EMAIL

 

Model for the Row 

NameTypeRequiredDescription
idstringyesThe Unique Id of the item
canEditbooleanyesIf true, allows editable row items to be modified
canDeletebooleanyes

If true, row will render with an remove action button available

cellscomponent[ ]yesScalar component details used for display in inside of table. These are the accepted components under a table: STRING, NUMBER, DROPDOWN, DATE, DATETIME, BOOLEAN, HYPERLINK, STATUS and EMAIL

 

Inherited Properties

NameTypeRequiredDescription
labelstringyesThe localized label to display
idstringyesThe unique id of the component
typeenumyesThe type of field
displayablebooleanyesIf true, displays the field
customValuesmapnoAllows product to provide extra details they may want back with a component
noteobjectnoIf provided, will prompt user to provide a note for the action taken
confirmationobjectnoIf provided, will prompt user to confirm they want to continue with an action



String Component


Description: The string component will be the most common component used in building views. Use it wherever free-form flowing alphanumeric text is needed to be displayed. Examples would be name, address and notes.

 A String component input can be length-limited if the minLength and/or maxLength validation constraints are present. Additionally, regex validation of a string data type is also supported. When providing a regex for validation, it must be enclosed in double quotes as a string.

A String component can be provided a "searchBy" method, if a product provides this property the string will appear as a clickable link, that when interacted with will perform a search by the set method.

 

String Component
{
	"type": "STRING",
	"id": "1",
	"value": "test",
	"displayable": true,
	"label": null,
	"readOnly": false,
	"searchBy": "email", // Accept search types defined for the product like account, email, address and * for Smart Search
	"customValues": {},
	"confirmation": {
		"required": true,
		"message": "message string"
	},
	"note": {
		"required": true,
		"value": "",
		"message": "message string"
	},
	"validation": {
		"required": true,
		"minLength": null,
		"maxLength": 50,
		"regex": null
	}
}

 

The Model for String Component Inherits all base properties

NameTypeRequiredDescription
searchBystringnoIf provided component will display as hyperlink, with auto search feature by provided type
readOnlybooleanyesIf true, allows the field to be edited
valuestringyesThe value for the component

 

Inherited Properties

NameTypeRequiredDescription
labelstringyesThe localized label to display
idstringyesThe unique id of the component
typeenumyesThe type of field
displayablebooleanyesIf true, displays the field
customValuesmapnoAllows product to provide extra details they may want back with a component
noteobjectnoIf provided, will prompt user to provide a note for the action taken
confirmationobjectnoIf provided, will prompt user to confirm they want to continue with an action
validationobjectnoProvides details about how the component should validate

 

Number Component


Description: Any numeric values that need to be displayed should use this field  (integer and floating). The number component is very similar to the string component except that it is limited to numeric data. Non-readonly values will be editable via a Edit button besides the value.

A Number can be provided a "searchBy" method, if a product provides this property the string will appear as a clickable link, that when interacted with will perform a search by the set method.

 

Number Component
{
	"type": "NUMBER",
	"id": "1",
	"displayable": true,
	"value": 30,
	"label": null,
	"readOnly": false,
	"customValues": {},
	"searchBy": "account", // Accept other search types available for the product like email, address
	"format": {
		"decimals": 2
	},
	"componentConfiguration": {
		"step": 1
	},
	"confirmation": {
		"required": true,
		"message": "message string"
	},
	"note": {
		"required": true,
		"value": "",
		"message": "message string"
	},
	"validation": {
		"min": 1,
		"max": 50,
		"required": false
	}
}

 

The Number Component Inherits all base properties

NameTypeRequiredDescription
readOnlybooleanyesIf true, allows the field to be edited
searchBystringnoIf provided component will display as hyperlink, with auto search feature by provided type
formatobjectnoIf provided the component will render the given format configuration.
componentConfigurationobjectnoIf provided, the component will assume the options in its settings.
valuenumberyesThe value for the component

 

Inherited Properties

NameTypeRequiredDescription
labelstringyesThe localized label to display
idstringyesThe unique id of the component
typeenumyesThe type of field
displayablebooleanyesIf true, displays the field
customValuesmapnoAllows product to provide extra details they may want back with a component
noteobjectnoIf provided, will prompt user to provide a note for the action taken
confirmationobjectnoIf provided, will prompt user to confirm they want to continue with an action
validationobjectnoProvides details about how the component should validate

 

Format Properties

NameTypeRequiredDescription
decimalsnumbernoSpecifies the number precision applied to the widget value and when the number component is focused. If not set, the precision defined by the current culture is used. If the user enters a number with a greater precision than is currently configured, the widget value will be rounded.

 

Component Configuration Properties

NameTypeRequiredDescription
stepnumbernoSpecifies the value used to increment or decrement value. The default is 1.


Dropdown Component


Description: A dropdown type allows displaying a dropdown list of options from which a singular value can be selected.

Note: The dropdown component does not support multiple selection and values that are not available in the options. Required is the only validation property to work on dropdowns.


Dropdown Component
{
	"type": "DROPDOWN",
	"id": "1",
	"displayable": true,
	"value": "item1",
	"label": null,
	"readOnly": false,
	"customValues": {},
	"confirmation": {
		"required": true,
		"message": "message string"
	},
	"note": {
		"required": true,
		"value": "",
		"message": "message string"
	},
	"options": [{
		"text": "item one",
		"value": "itemOne"
	},{
		"text": "item two",
		"value": "itemTwo"
	}],
	"validation": {
		"required": false
	}
}

 

The Model for Dropdown Component Inherits all base properties

NameTypeRequiredDescription
optionslistyesdefines key / value objects inside of dropdown selctor
readOnlybooleanyesIf true, allows the field to be edited
valuestringyesThe value for the component

 

Inherited Properties

NameTypeRequiredDescription
labelstringyesThe localized label to display
idstringyesThe unique id of the component
typeenumyesThe type of field
displayablebooleanyesIf true, displays the field
customValuesmapnoAllows product to provide extra details they may want back with a component
noteobjectnoIf provided, will prompt user to provide a note for the action taken
confirmationobjectnoIf provided, will prompt user to confirm they want to continue with an action
validationobjectnoProvides details about how the component should validate

Date Component


Description: Date component displays localized dates, optionally formatted by the user, and will provide a date picker for editing. The value provided should be a UTC timestamp in milliseconds.

Date Component
{
	"type": "DATE",
	"id": "1",
	"displayable": true,
	"value": 1484178937000,
	"label": "date",
	"readOnly": false,
	"customValues": {},
	"confirmation": {
		"required": true,
		"message": "message string"
	},
	"note": {
		"required": true,
		"value": "",
		"message": "message string"
	},
	"validation": {
		"min": 1484178937000,
		"max": 1484178937000,
		"required": false
	}
}

 

The Model for Date Component Inherits all base properties

NameTypeRequiredDescription
readOnlybooleanyesIf true, allows the field to be edited
valuenumberyesThe value for the component

 

Inherited Properties

NameTypeRequiredDescription
labelstringyesThe localized label to display
idstringyesThe unique id of the component
typeenumyesThe type of field
displayablebooleanyesIf true, displays the field
customValuesmapnoAllows product to provide extra details they may want back with a component
noteobjectnoIf provided, will prompt user to provide a note for the action taken
confirmationobjectnoIf provided, will prompt user to confirm they want to continue with an action
validationobjectnoProvides details about how the component should validate

Date and Time Component


Description: Date and Time component displays localized dates and time, optionally formatted by the user, and will provide a date-time picker for editing. The value provided should be a UTC timestamp in milliseconds.

Date and Time Component
{
	"type": "DATETIME",
	"id": "1",
	"displayable": true,
	"value": 1484178937000,
	"label": "date",
	"readOnly": false,
	"customValues": {},
	"confirmation": {
		"required": true,
		"message": "message string"
	},
	"note": {
		"required": true,
		"value": "",
		"message": "message string"
	},
	"validation": {
		"min": 1484178937000,
		"max": 1484178937000,
	}
}

 

The Model for Date and Time Component Inherits all base properties

NameTypeRequiredDescription
readOnlybooleanyesIf true, allows the field to be edited
valuenumberyesThe value for the component

 

Inherited Properties

NameTypeRequiredDescription
labelstringyesThe localized label to display
idstringyesThe unique id of the component
typeenumyesThe type of field
displayablebooleanyesIf true, displays the field
customValuesmapnoAllows product to provide extra details they may want back with a component
noteobjectnoIf provided, will prompt user to provide a note for the action taken
confirmationobjectnoIf provided, will prompt user to confirm they want to continue with an action
validationobjectnoProvides details about how the component should validate

Boolean Component


Description: A boolean value should be used to display data that can only have binary values (0, 1, true, false). Some examples where this would be a fitting component to use to display would be: isMember, isActive. These are inherently fields with true/false values.

A boolean component would render this as a checkbox whose state (checked or unchecked) would indicate the value (true or false).

Boolean Component
{
	"type": "BOOLEAN",
	"id": "1",
	"displayable": true,
	"value": true,
	"label": "date",
	"cssClasses": "toggle", //optional 
	"readOnly": false,
	"customValues": {},
	"confirmation": {
		"required": true,
		"message": "message string"
	},
	"note": {
		"required": true,
		"value": "",
		"message": "message string"
	}
}

 

The Model for Boolean Component Inherits all base properties

NameTypeRequiredDescription
readOnlybooleanyesIf true, allows the field to be edited
valuebooleanyes

The value for the component

 

cssClassesstringno

Whether to change the boolean visually to appear as a toggle or a checkbox. The CSS classes have to be pre-defined in Axis. No custom classes are allowed.

Currently we allow: "toggle".

 

Inherited Properties

NameTypeRequiredDescription
labelstringyesThe localized label to display
idstringyesThe unique id of the component
typeenumyesThe type of field
displayablebooleanyesIf true, displays the field
customValuesmapnoAllows product to provide extra details they may want back with a component
noteobjectnoIf provided, will prompt user to provide a note for the action taken
confirmationobjectnoIf provided, will prompt user to confirm they want to continue with an action
validationobjectnoOnly "required" is validated. If "required" is true, then null is invalid.

Hyperlink Component


Description: The hyperlink is a component that allows users to open provided URLs in other tabs outside of Axis.

Hyperlink Component
{
	"type": "HYPERLINK",
	"id": "1",
	"displayable": true,
	"value": "http://test.com",
	"target": "_blank",
	"label": "date",
	"customValues": {},
	"confirmation": {},
	"note": {},
	"validation": {}
}

 

The Model for Hyperlink Component Inherits all base properties

NameTypeRequiredDescription
targetstring no  If provided, changes the target action of the hyperlink. The default is "_blank" and "_self" is not accepted.
valuestringyesThe value for the component

 

Inherited Properties

NameTypeRequiredDescription
labelstringyesThe localized label to display
idstringyesThe unique id of the component
typeenumyesThe type of field
displayablebooleanyesIf true, displays the field
customValuesmapnoAllows product to provide extra details they may want back with a component
noteobjectnoIt's ignored as this component is not editable
confirmationobjectnoIt's ignored as this component is not editable
validationobjectnoIt's ignored as this component is not editable

Layout Component


Description: Layouts provide the ability to section the screen into columns, by default a layout will generate up to four columns depending on the screen size, but can be told to divide its content into 3, 2 or 1 column. Layouts can only be used in the first level of data therefore they cannot be a child item of a component.

The layout still responds to the responsive nature of the tool, and will handle shuffling items as the screen size changes.

*Layout is not an editable component. The components in it are the ones to have readOnly definitions.


Layout Component
{
	"type": "LAYOUT",
	"id": "1",
	"displayable": true,
	"label": "date",
	"colspan": 2,
	"items": [{
		"type": "HYPERLINK",
		"id": "1",
		"displayable": true,
		"value": "http://test.com",
		"target": "_blank",
		"label": "Go to X website",
		"readOnly": true,
		"customValues": {},
		"options": [],
		"validation": {}
	}, {
		"type": "BOOLEAN",
		"id": "1",
		"displayable": true,
		"value": true,
		"label": "Enabled",
		"readOnly": false,
		"customValues": {},
		"options": [],
		"validation": {}	
	}]
}

 

The Model for Group Component Inherits all base properties

NameTypeRequiredDescription
colspaninteger no Defines how many columns the group uses to determine it's responsive width 
itemscomponent []yesContains collection of components to be displayed within the group

 

Inherited Properties

NameTypeRequiredDescription
labelstringnoThe localized label to display
idstringyesThe unique id of the component
typeenumyesThe type of field
displayablebooleanyesIf true, displays the field
customValuesmapnoAllows product to provide extra details they may want back with a component
noteobjectnoWon't have effect in layout the component
confirmationobjectnoWon't have effect in layout the component
validationobjectnoWon't have effect in layout the component


Group Component


Description: A group behaves similar to a Layout component. The main difference is that it can be editable and responsible to edit its child items and can be a child of a layout. Groups cannot have Layout, Group or Table components as one of its child items.

Groups still respond to the responsive nature of the tool, and will handle shuffling items as the screen size changes.

*If a group component's readonly property is true, then the group will be responsible to save the changes under its components. The components still need to have their own definitions for readonly.

 

Group Component
{
	"type": "GROUP",
	"id": "1",
	"displayable": true,
	"label": "date",
	"readOnly": false,
	"cssClasses": "bordered", // Optional
	"confirmation": {
		"required": true,
		"message": "message string"
	},
	"note": {
		"required": true,
		"value": "",
		"message": "message string"
	},
	"customValues": {},
	"validation": {},
	"colspan": 2,
	"items": [{
		"type": "HYPERLINK",
		"id": "1",
		"displayable": true,
		"value": "http://test.com",
		"target": "_blank",
		"label": "Go to X website",
		"readOnly": true,
		"customValues": {},
		"options": [],
		"validation": {}
	}, {
		"type": "BOOLEAN",
		"id": "1",
		"displayable": true,
		"value": true,
		"label": "Enabled",
		"readOnly": false,
		"customValues": {},
		"options": [],
		"validation": {}	
	}]
}

 

The Model for Group Component Inherits all base properties

NameTypeRequiredDescription
readOnlybooleanyesIf true, allows the field to be edited
colspaninteger no Defines how many columns the group uses to determine it's responsive width 
itemscomponent []yesContains collection of components to be displayed within the group
cssClassesstringno

Whether to change the grid visually to appear as a compound component. The CSS classes have to be pre-defined in Axis. No custom classes are allowed.

Currently we allow: "bordered".

 

Inherited Properties

NameTypeRequiredDescription
labelstringnoThe localized label to display
idstringyesThe unique id of the component
typeenumyesThe type of field
displayablebooleanyesIf true, displays the field
customValuesmapnoAllows product to provide extra details they may want back with a component
noteobjectnoIf provided, will prompt user to provide a note for the action taken
confirmationobjectnoIf provided, will prompt user to confirm they want to continue with an action
validationobjectnoWon't have effect in group

Action Button Component


Description: The action button is a component that appears as a button in the interface, and sends an action value to the Product service for processing and appropriate actions to take place.

Note: This action button shares very little functionality with the action button in version 1 of Dynamic Modules. That action button triggered an API call to a provided URL that would be called from the Axis Client. Due to security and other considerations, that functionality will no longer be supported moving forward. If a Product wishes to call to another service or location they must initiate those calls from the product end itself.

 

Action Button
{
  "id": "1276372",
  "type": "ACTION_BUTTON",
  "cssClass": "red"
  "displayable": true,
  "label": "Reset Password",
  "disabled": false,
  "confirmation": {
    "required": false,
    "message": "Are you sure you want to send the reset password email?"
  },
  "note": {
    "required": true,
    "value": "",
    "message": "message string."
  }
  "customValues": {
    "accountId": "{asduf981-y1984-12jh4kj-asidfhjujhjk}",
    "emailType": "password_reset"
  }
}

 

The Model for Action Button Component Inherits all base properties

NameTypeRequiredDescription
cssClassstringnoDefine a color for the button to emphasize the action relevance. "red", "green" and "blue" are supported. "blue" is the default.
disabledbooleannoIf true, shows the button in a disabled state. This allows the product to control whether an action should be allwoed to be performed more than once.

 

Inherited Properties

NameTypeRequiredDescription
labelstringyesThe localized label to display
idstringyesThe unique id of the component
typeenumyesThe type of field
displayablebooleanyesIf true, displays the field
customValuesmapnoAllows product to provide extra details they may want back with a component
noteobjectnoIf provided, will prompt user to provide a note for the action taken
confirmationobjectnoIf provided, will prompt user to confirm they want to continue with an action

Status Indicator Component


Description: A Status Indicator allows the viewing of a descriptive label along with a corresponding color value.

There are several available colors for this component. By changing the "color" property to one of the following:

  • green   - provides a green indicator
  • yellow  - provides a yellow indicator
  • red       - provides a red indicator
  • black   - provides a black indicator

Changing the "label" property , will update the label to the left of the desired indicator.

Changing the "value" property will add a "word" into the color status light

The Status Indicator does not currently support any validation options, nor is it editable

Status Indicator
{
	"type": "STATUS",
	"id": "1",
	"displayable": true,
	"value": "excellent",
	"color": "green",
	"label": "Server Status",
	"customValues": {},
	"confirmation": {},
	"note": {},
	"validation": {}
}

 

The Model for Status Component Inherits all base properties

NameTypeRequiredDescription
colorstring no Provides the color desired to display with the status. Defaults to black.
valuestringnoThe value for the component to be displayed in the status color. Empty string if no text value desired

 

Inherited Properties

NameTypeRequiredDescription
labelstringyesThe localized label to display
idstringyesThe unique id of the component
typeenumyesThe type of field
displayablebooleanyesIf true, displays the field
customValuesmapnoAllows product to provide extra details they may want back with a component
noteobjectnoWon't have effect in this component
confirmationobjectnoWon't have effect in this component
validationobjectnoWon't have effect in this component

Email Component


Description: The email component will display and edit the same as a string component would provide, however visually it will look like a clickable link. When a user interacts with it and "searchBy" is defined, the "value" of the string will be put into the search bar for Axis, and will perform a search for the user (smart search is performed per default)

Note: The email component accepts all string component validation options, and it will by default validate any edits to verify that it is a valid email address. So in essence there is no need to have minLength, maxLength and regex on validation unless if the product has special cases.

Email Component
{
	"type": "EMAIL",
	"id": "1",
	"displayable": true,
	"value": "test@disney.com",
	"searchBy": "*",
	"label": "Email",
	"readOnly": false,
	"customValues": {},
	"confirmation": {},
	"note": {},
	"validation": {}
}

 

The Model for Email  Component Inherits all base properties

NameTypeRequiredDescription
searchBystringnoIf provided component will display as hyperlink, with auto search feature by provided type
readOnlybooleanyesIf true, allows the field to be edited
valuestringyesThe value for the component

 

Inherited Properties

NameTypeRequiredDescription
labelstringyesThe localized label to display
idstringyesThe unique id of the component
typeenumyesThe type of field
displayablebooleanyesIf true, displays the field
customValuesmapnoAllows product to provide extra details they may want back with a component
noteobjectnoIf provided, will prompt user to provide a note for the action taken
confirmationobjectnoIf provided, will prompt user to confirm they want to continue with an action
validationobjectnoProvides details about how the component should validate

Deprecated v1 Components

Key Value and Inventory components are no longer supported in v2. If you have v1 APIs in Axis 6, than you may have seen that these 2 components are rendered as tables now. Having that in mind, it's possible to replicate these components using the table component in v2.

Please check Replacing Deprecated v1 Components page for JSON examples.