| @@ 55-70 (lines=16) @@ | ||
| 52 | * @param int $width |
|
| 53 | * @param \Closure $closure |
|
| 54 | */ |
|
| 55 | public function column($width, \Closure $closure) |
|
| 56 | { |
|
| 57 | if ($this->columns->isEmpty()) { |
|
| 58 | $column = $this->current; |
|
| 59 | ||
| 60 | $column->setWidth($width); |
|
| 61 | } else { |
|
| 62 | $column = new Column($width); |
|
| 63 | ||
| 64 | $this->current = $column; |
|
| 65 | } |
|
| 66 | ||
| 67 | $this->columns->push($column); |
|
| 68 | ||
| 69 | $closure($this->parent); |
|
| 70 | } |
|
| 71 | ||
| 72 | /** |
|
| 73 | * Get all columns in filter layout. |
|
| @@ 58-73 (lines=16) @@ | ||
| 55 | * @param int $width |
|
| 56 | * @param \Closure $closure |
|
| 57 | */ |
|
| 58 | public function column($width, \Closure $closure) |
|
| 59 | { |
|
| 60 | if ($this->columns->isEmpty()) { |
|
| 61 | $column = $this->current; |
|
| 62 | ||
| 63 | $column->setWidth($width); |
|
| 64 | } else { |
|
| 65 | $column = new Column($width); |
|
| 66 | ||
| 67 | $this->current = $column; |
|
| 68 | } |
|
| 69 | ||
| 70 | $this->columns->push($column); |
|
| 71 | ||
| 72 | $closure($this->parent); |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * Get all columns in filter layout. |
|