Ublaboo\DataGrid\Row::getId PHP Method

getId() public method

Get id value of item
public getId ( ) : mixed
return mixed
    public function getId()
    {
        return $this->id;
    }

Usage Example

Beispiel #1
0
 /**
  * Render row item detail button
  * @param  Row $row
  * @return Html
  */
 public function renderButton($row)
 {
     $a = Html::el('a')->href($this->grid->link('getItemDetail!', ['id' => $row->getId()]))->data('toggle-detail', $row->getId())->data('toggle-detail-grid', $this->grid->getName());
     $this->tryAddIcon($a, $this->getIcon(), $this->getText());
     $a->addText($this->text);
     if ($this->title) {
         $a->title($this->grid->getTranslator()->translate($this->title));
     }
     if ($this->class) {
         $a->class($this->class);
     }
     return $a;
 }
All Usage Examples Of Ublaboo\DataGrid\Row::getId