Skip to content

and

and(…rules): SchemaRule

Defined in: projects/ngx-signal-schema/src/lib/conditions/and.ts:21

Combines multiple schema rules with AND logic.

SchemaRule[]

The rules to combine.

SchemaRule

A rule function that returns true if all rules return true.

applyIf(
fieldPath, // the field path to apply a schema to
// the conditions concatenated with `and`
and(valueEquals(fieldPath.type, 'A'), valueEquals(fieldPath.aknowladged, true)),
AllowSchema, // applyes the Allow Schema, when the condition above is true
inactive // hides the complete fieldPath and subpath
)