Display meta-fields in datatables (#1116)

This commit is contained in:
Kevin Papst
2019-09-19 20:28:31 +02:00
committed by GitHub
parent 24cbe3d281
commit 5aa422dde1
71 changed files with 1461 additions and 212 deletions

View File

@@ -70,6 +70,12 @@ trait MetaTableTypeTrait
*/
private $constraints = [];
/**
* An array of options for the form element
* @var array
*/
private $options = [];
public function getName(): ?string
{
if (null === $this->name) {
@@ -183,7 +189,10 @@ trait MetaTableTypeTrait
->setType($meta->getType())
->setConstraints($meta->getConstraints())
->setIsRequired($meta->isRequired())
->setIsVisible($meta->isVisible());
->setIsVisible($meta->isVisible())
->setLabel($meta->getLabel())
->setOptions($meta->getOptions())
;
return $this;
}
@@ -203,4 +212,16 @@ trait MetaTableTypeTrait
return $this;
}
public function setOptions(array $options): MetaTableTypeInterface
{
$this->options = $options;
return $this;
}
public function getOptions(): array
{
return $this->options;
}
}