OrganizationSetComponent
Creates form input for organization set values. An organization set is either a user or a role. This control will emit a stringified JSON object of a OrganizationSetEntry object.
Example :
{
"id:organization:set": [
"{\"id\":\"YUUVIS_AI_PREDICT\",\"title\":\"YUUVIS_AI_PREDICT\",\"type\":\"role\"}"
]
}Component Metadata
Section titled “Component Metadata”Selector: yuv-organization-set
Standalone: No
Implements: ControlValueAccessor, OnDestroy, OnInit
Inputs
Section titled “Inputs”autocompleteMinLength
Section titled “autocompleteMinLength”Type: number
Default Value: 2
Minimum length of the autocomplete input before a query is sent to the server.
classifications
Section titled “classifications”Type: string[] | undefined
Default Value: undefined
multiselect
Section titled “multiselect”Type: boolean
Default Value: false
Indicator that multiple strings could be inserted, they will be rendered as chips (default: false).
readonly
Section titled “readonly”Type: boolean
Default Value: false
Will prevent the input from being changed (default: false)
situation
Section titled “situation”Type: string | undefined
Default Value: undefined
Possibles values are EDIT (default),SEARCH,CREATE. In search situation validation of the form element will be turned off, so you are able to enter search terms that do not meet the elements validators.
Type: string[] | undefined
Default Value: undefined
withMetadata
Section titled “withMetadata”Type: boolean
Default Value: false
Whether or not the emitted value should be an object containing id and title or, if set to false only the ID
disabled
Section titled “disabled”Type: BooleanInput
placeholder
Section titled “placeholder”Type: string
required
Section titled “required”Type: BooleanInput
Properties
Section titled “Properties”acFormControl
Section titled “acFormControl”Type: unknown
Default Value: new FormControl<AutocompleteItem | AutocompleteItem[] | undefined>(undefined)
autocompleteRes
Section titled “autocompleteRes”Type: AutocompleteItem[]
Default Value: []
Type: unknown
Default Value: signal<boolean>(false)
innerValue
Section titled “innerValue”Type: OrganizationSetEntry[]
Default Value: []
ngControl
Section titled “ngControl”Type: unknown
Default Value: injectNgControl(this)
propagateChange
Section titled “propagateChange”Type: unknown
Default Value: () => \{...\}
autofilled
Section titled “autofilled”Type: boolean
controlType
Section titled “controlType”Type: string
disableAutomaticLabeling
Section titled “disableAutomaticLabeling”Type: boolean
stateChanges
Section titled “stateChanges”Type: unknown
Default Value: new Subject<void>()
userAriaDescribedBy
Section titled “userAriaDescribedBy”Type: string
Methods
Section titled “Methods”autocompleteFn
Section titled “autocompleteFn”autocompleteFn(query: string): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| query | string |
registerOnChange
Section titled “registerOnChange”registerOnChange(fn: any): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| fn | any |
registerOnTouched
Section titled “registerOnTouched”registerOnTouched(fn: any): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| fn | any |
setDisabledState
Section titled “setDisabledState”setDisabledState(isDisabled: boolean): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| isDisabled | boolean |
writeValue
Section titled “writeValue”writeValue(value: string | string[]): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| value | string | string[] |
onContainerClick
Section titled “onContainerClick”onContainerClick(event: MouseEvent): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| event | MouseEvent |
onFocusIn
Section titled “onFocusIn”onFocusIn(): voidonFocusout
Section titled “onFocusout”onFocusout(): voidonNgOnDestroy
Section titled “onNgOnDestroy”onNgOnDestroy(): voidsetDescribedByIds
Section titled “setDescribedByIds”setDescribedByIds(ids: string[]): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| ids | string[] |