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

Function isEnabled

packages/core/src/util/runtime.ts:228–240  ·  view source on GitHub ↗
(
  uischema: UISchemaElement,
  data: any,
  path: string = undefined,
  ajv: Ajv,
  config: unknown
)

Source from the content-addressed store, hash-verified

226};
227
228export const isEnabled = (
229 uischema: UISchemaElement,
230 data: any,
231 path: string = undefined,
232 ajv: Ajv,
233 config: unknown
234): boolean => {
235 if (uischema.rule) {
236 return evalEnablement(uischema, data, path, ajv, config);
237 }
238
239 return true;
240};
241
242export const isReadonly = (
243 uischema: UISchemaElement,

Callers 1

isEnabledFunction · 0.90

Calls 1

evalEnablementFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…