getTagItems

Function

Fetch the entity's org tags (limited to the top 200), merge with any configured on the entity itself, and convert into a format that can be consumed by the combobox field

TODO: the search portion of this util should probably be hoisted to hub.js

  • getTagItems(tags: string[], orgId: string, hubRequestOptions: IHubRequestOptions) : Promise<IUiSchemaComboboxItem[]>

Parameters

Parameter Type Default Notes
tags Required string[]
orgId Required string
hubRequestOptions Required IHubRequestOptions

Returns

Promise<IUiSchemaComboboxItem[]>

Function defined in common/src/core/schemas/internal/getTagItems.ts:17