new Folder()
A folder which can contain queries, topic collections and other folders
Extends
Methods
createSemanticCollection(name) → {$k.SemanticCollection}
Creates a semantic collection and adds it to this folder
Name | Type | Description |
---|---|---|
name | string | The name of the new semantic collection |
- Since
- 5.3.3
If no write transaction is active
the new semantic collection
- Type:
- $k.SemanticCollection
deregister()
Deregisters the element. The id will be undefined afterwards. Equivalent to setId(undefined)
- Inherited From
- See
- setId
elements() → {Array.<object>}
Returns the elements of the collection
- Inherited From
- Type:
- Array.<object>
id() → {string}
Returns the registered ID, or undefined if not registered.
- Inherited From
- Type:
- string
leafElements() → {Array.<object>}
Returns the elements which are not folders
- Type:
- Array.<object>
name() → {string}
Returns the name
- Inherited From
- Type:
- string
parentFolders() → {Array.<$k.Folder>}
Returns the folders that contain this element
- Inherited From
- Type:
- Array.<$k.Folder>
registryType() → {string}
Returns the name of the registry that contains elements of this type
- Inherited From
- Type:
- string
setId(id, replaceScriptReferences)
Registers the element with the given ID. If the element has already been registered, then the id changes. If the id is undefined, then the element will be deregistered.
Name | Type | Description |
---|---|---|
id | string | The ID |
replaceScriptReferences | boolean | True if ID references in scripts should be replaced. Only done when the old and the new ID is not undefined. |
- Inherited From
subfolders() → {Array.<object>}
Returns the subfolders
- Type:
- Array.<object>