Example #1
0
 /**
  * DetailsRow constructor.
  *
  * @param DataViewComponentInterface $view details row content, will be initialized by data row
  * @param ResourceManager|null $resourceManager
  */
 public function __construct(DataViewComponentInterface $view, ResourceManager $resourceManager = null)
 {
     parent::__construct();
     $this->getRowTag()->setAttribute('style', 'display:none;')->setAttribute('data-details-row', '1');
     $this->addChild($this->view = $view);
     $this->setDestinationParentId(Grid::COLLECTION_VIEW_ID);
     $this->setId(static::ID);
     $this->resourceManager = $resourceManager ?: Services::resourceManager();
     $this->jquery = $this->resourceManager->js('jquery');
 }