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.
Parameters
Section titled “Parameters”SchemaRuleContext
The context providing access to the schema state.
Returns
Section titled “Returns”boolean
True if the condition is met, false otherwise.
Example
Section titled “Example”const myRule: SchemaRule = (ctx) => ctx.valueOf(path.someField) === 'active';