Skip to content

SchemaRule

SchemaRule = (ctx) => boolean

Defined in: projects/ngx-signal-schema/src/lib/conditions/schema-rule.ts:35

A rule that evaluates a condition based on the schema context. Used for conditional logic like visibility or enablement.

SchemaRuleContext

The context providing access to the schema state.

boolean

True if the condition is met, false otherwise.

const myRule: SchemaRule = (ctx) => ctx.valueOf(path.someField) === 'active';