code: public function setAdditionalViewsForTemplate($views) {
          if (!is_array($views) && !($views instanceof \Closure)) {
              throw new \InvalidArgumentException('$views argument must be an array or \Closure');
          }
          $this->additionalViewsForTemplate = $views;
          return $this;
      }
docs: Provide additional Laravel views to be inserted after data grid.
  This will solve almost any problem with complex data grid cells that need to be rendered separately.
  Use this method in couple with $this->setJsInitiator('jsFunctionName') to have full control over data grid
  initialization and configuration.
  
  Each view will be rendered using view($viewPath, $generalData, $customData) calls.
  
  $generalData contains:
  'idSuffix' => string
  'table' => TableInterface
  'dataGridConfig' => DataGridConfig
  $customData may be provided for each view separately via $views argument
  
  @param array|\Closure $views -
  - array: list of Laravel views in format
  [
  'folder.view',
  'folder.view2' => $customData,
  'ns::folder.view',
  ]
  - \Closure: function (DataGridConfig $dataGridConfig) { reurn [] } returned value must
  fit same format as array (see above)
  @return $this
  @throws \InvalidArgumentException