OrganizationComponent
Creates form input for organization values.
Example :
<yuv-organization [multiselect]="true"></yuv-organization>Component Metadata
Section titled “Component Metadata”Selector: yuv-organization
Standalone: Yes
Implements: ControlValueAccessor, OnInit, OnDestroy
Inputs
Section titled “Inputs”classifications
Section titled “classifications”Type: string[] | undefined
Default Value: undefined
excludeMe
Section titled “excludeMe”Type: boolean
Default Value: false
Whether or not to exclude the current user from autocomplete result
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.
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”_innerValue
Section titled “_innerValue”Type: OrganizationNode[]
Default Value: []
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)
minLength
Section titled “minLength”Type: number
Default Value: 2
ngControl
Section titled “ngControl”Type: unknown
Default Value: injectNgControl(this)
propagateChange
Section titled “propagateChange”Type: unknown
Default Value: () => {...}
translate
Section titled “translate”Type: unknown
Default Value: inject(TranslateService)
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 |
resolveFn
Section titled “resolveFn”resolveFn(value: string[]): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| value | string[] |
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[] |