implement GRIDs
This commit is contained in:
@@ -57,6 +57,10 @@ class Column implements JsonSerializable
|
||||
$this->title = $b->title;
|
||||
$this->type = $b->type;
|
||||
|
||||
if ($this->name == '_grid') { // global row ID
|
||||
throw new NotApplicableException("_grid is a reserved column name.");
|
||||
}
|
||||
|
||||
if (!in_array($this->type, self::colTypes)) {
|
||||
throw new NotApplicableException("\"$this->type\" is not a valid column type.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user