Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

id

Unique identifier of the label.

int
nameThe print title of the labelstring
isSticky

True: The label needs to be rendered always when viewing an object.

False: The label needs to be rendered only if it was assigned the non-default value.

This property is mostly for internal use.

bool
isStickyInLists

True: The label needs to be rendered always when viewing lists of objects

False: The label needs to be rendered only if it was assigned the non-default value.

This property is mostly for internal use.

bool
options

The list of options to choose from. A label has 2 or more options.

Each option has these properties:

  • name: The print name
  • value: The internal value ID of the option
  • htmlColor: The color of the label. Formatted as an HTML color like "#3827A7"

 

 

 

...

EXAMPLES

 

Code Block
{
	"id": 2, // Unique identifier of label
	"name": "Usefulness", // Label name
	"isSticky": false, // Label is sticky
	"isStickyInLists": false, // Label is sticky in lists
	"options": [
		{
			"name": "High quality",
			"value": 4,
			"htmlColor": "#92D050"					                        
		}, 
		{
			"name": "Medium quality",
			"value": 1,
			"htmlColor": "#FFCC00"					                        
		}, 
		{
			"name": "Low quality",
			"value": 2,
			"htmlColor": "#CC6600"					                        
		}, 
		{
			"name": "Do not use",
			"value": 3,
			"htmlColor": "#FF4F4F"
		}
	]					                
}

...