Author: Adam Piotrowski (adam@wellcommerce.org)
Inheritance: extends WellCommerce\Bundle\CoreBundle\DependencyInjection\AbstractContainerAware, implements WellCommerce\Bundle\DataGridBundle\DataGridInterface
Example #1
0
 /**
  * {@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')]));
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 protected function configureOptions(OptionsInterface $options)
 {
     parent::configureOptions($options);
     $eventHandlers = $options->getEventHandlers();
     $eventHandlers->add(new UpdateRowEventHandler(['function' => $this->getJavascriptFunctionName('update'), 'route' => $this->getActionUrl('update')]));
 }