Similar to Symfony Form FormBuilderInterface, the DataTableBuilderInterface should contain create methods to create instances of column, filter, action and exporter builders:
public function createColumn(string $name, ?string $type = null, array $options = []): ColumnBuilderInterface;
public function createFilter(string $name, ?string $type = null, array $options = []): FilterBuilderInterface;
public function createAction(string $name, ?string $type = null, array $options = []): ActionBuilderInterface;
public function createRowAction(string $name, ?string $type = null, array $options = []): ActionBuilderInterface;
public function createBatchAction(string $name, ?string $type = null, array $options = []): ActionBuilderInterface;
public function createExporter(string $name, ?string $type = null, array $options = []): ExporterBuilderInterface;
This provides a nicer builder API, for example, for #96
Similar to Symfony Form
FormBuilderInterface
, theDataTableBuilderInterface
should containcreate
methods to create instances of column, filter, action and exporter builders:This provides a nicer builder API, for example, for #96