and
and(…
rules):SchemaRule
Defined in: projects/ngx-signal-schema/src/lib/conditions/and.ts:21
Combines multiple schema rules with AND logic.
Parameters
Section titled “Parameters”…SchemaRule[]
The rules to combine.
Returns
Section titled “Returns”A rule function that returns true if all rules return true.
Example
Section titled “Example”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 )