- Source:
Methods
(static) getTerms(id) → {Promise.<SP.TermCollection>}
Returns a promise which resolves with
an object containing all the terms
corresponding to the given termset id.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | a termset guid |
- Source:
Returns:
- Type
- Promise.<SP.TermCollection>
(static) getTermsList(id) → {Promise.<Array>}
Returns a promise which resolves
to an array. Each element
is a taxonomy term object.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | a termset guid |
- Source:
Returns:
- Type
- Promise.<Array>
(static) getTermsTree(id) → {Promise.<TermsTree>}
Returns a promise which resolves
to a tree object. Each node has
a children property which is sorted
according to customSortOrder.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | a termset guid |
- Source:
Returns:
- Type
- Promise.<TermsTree>