Configures DataGrid options
protected configureOptions ( WellCommerce\Component\DataGrid\Options\OptionsInterface $options ) | ||
$options | WellCommerce\Component\DataGrid\Options\OptionsInterface |
/** * {@inheritdoc} */ protected function configureOptions(OptionsInterface $options) { parent::configureOptions($options); $eventHandlers = $options->getEventHandlers(); $eventHandlers->add(new ProcessEventHandler(['function' => $this->getJavascriptFunctionName('process')])); $eventHandlers->add(new LoadedEventHandler(['function' => $this->getJavascriptFunctionName('data_loaded')])); }
/** * {@inheritdoc} */ protected function configureOptions(OptionsInterface $options) { parent::configureOptions($options); $eventHandlers = $options->getEventHandlers(); $eventHandlers->add(new UpdateRowEventHandler(['function' => $this->getJavascriptFunctionName('update'), 'route' => $this->getActionUrl('update')])); }