MCPcopy Create free account
hub / github.com/eclipsesource/jsonforms / optionIs

Function optionIs

packages/core/src/testers/testers.ts:215–223  ·  view source on GitHub ↗
(optionName: string, optionValue: any)

Source from the content-addressed store, hash-verified

213 */
214export const optionIs =
215 (optionName: string, optionValue: any): Tester =>
216 (uischema: UISchemaElement): boolean => {
217 if (isEmpty(uischema)) {
218 return false;
219 }
220
221 const options = uischema.options;
222 return !isEmpty(options) && options[optionName] === optionValue;
223 };
224
225/**
226 * Checks whether the given UI schema has an option with the given

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…