Skip to main content

ICAChoiceOptionResolver

@spartanfx/react v1.2.2


@spartanfx/react / codeapps / ICAChoiceOptionResolver

Interface: ICAChoiceOptionResolver

Caching, label-aware resolver for a single SharePoint Choice / Lookup / Person column. Created via createChoiceOptionResolver.

Methods​

getOptions()​

getOptions(): ICASharePointChoiceOption[];

Read-only view of the loaded options (empty until preload/resolve runs).

Returns​

ICASharePointChoiceOption[]


invalidate()​

invalidate(): void;

Reset the cache — next resolve() reloads from the connector.

Returns​

void


preload()​

preload(): Promise<void>;

Eagerly load the option list. Optional — resolve() lazy-loads on first call.

Returns​

Promise<void>


resolve()​

resolve(value): Promise<ICASharePointChoiceOption>;

Resolve a label or id to the expanded option object the SharePoint connector expects. Returns undefined when no match is found — caller decides whether to throw or pass-through.

Parameters​

value​

string | number

Returns​

Promise<ICASharePointChoiceOption>


resolveSync()​

resolveSync(value): ICASharePointChoiceOption;

Resolve synchronously after the options array has been loaded once.

Parameters​

value​

string | number

Returns​

ICASharePointChoiceOption