Collection Types Definition
A detailed look into the structure and usage of collection type definitions: The data structure in yaml looks as follows:
---
id: MY_COLLECTION_TYPE
name: My Test Collection
description: A collection type for tutorial purposes
allowAllTags: false
permittedTags:
- Tag 1
- Tag 2
editableMetadata:
create:
edit:
- key: my.element.binaryProperty
label: My Binary Property
type: boolean
- key: my.element.metadata
label: My Property
type: text # if not specified, the default is text
- key: other.metadata
label: Multiselect property
options:
- Option 2
- Option 1
globalRules:
- type: javascript
name: global_rules
scriptCode: |
// global rules go here to be reused in multiple locations
eventRules:
- type: javascript
name: my_event
scriptCode: |
// custom event code goes here
views:
- name: Example View 1
elementRules:
- type: javascript
name: simple hierarchy
scriptCode: |
// element rules execute on each element once
treeRules:
- type: javascript
name: sort rule
scriptCode: |
// tree rule