edit row - landrisek/impala GitHub Wiki
Statup controller method
/** @var IBuilder / public $row; /* @var IBuilder @inject */ public $grid; $this->row = $this->grid->copy();
Action controller method
$this->row->table('myTable')->where('column', $value);
Create component method
protected function createComponentImpala(): IImpalaFactory { return $this->ImpalaFactory->create() ->setGrid($this->grid) ->setRow($this->row); }
IEdit::move
Is run after drag and drop action on images created by Impala\ReactForm::addGallery in children components. As parameters are provided $row with all data of row and image with key of given gallery component, from and to position.
IEdit::delete
Is run after clicking and submiting delete action created by Impala\ReactForm::addGallery. As parameters are provided $row with all data of row and image with key of given gallery component and number / key of photo within gallery.