CRUDUI PHP API

Visibility
in package

FinalYes

`design.show` resolves like a conditional parameter in the field's row context ({@see ConditionalValue}), and only a resolved `false` hides the field: a field without `design.show`, a condition map that selects nothing and a string that is not a valid expression leave it visible. The validator and the form both use this resolution, so a server reaches the visibility the form showed.

Table of Contents

Methods

declared()  : mixed
The `design.show` value of a field declaration, or null.
shown()  : bool
Whether a field with this `design.show` value is visible.

Methods

declared()

The `design.show` value of a field declaration, or null.

public static declared(array<string, mixed>|stdClass $field) : mixed
Parameters
$field : array<string, mixed>|stdClass

shown()

Whether a field with this `design.show` value is visible.

public static shown(mixed $show, array<string|int, mixed>|stdClass $data, array<int, string> $path[, array<int, int> $rowKeys = [] ]) : bool
Parameters
$show : mixed
$data : array<string|int, mixed>|stdClass
$path : array<int, string>

the field's path, row keys included

$rowKeys : array<int, int> = []

positions of the row keys in $path

Return values
bool
On this page

Search results