|
@@ 812-820 (lines=9) @@
|
| 809 |
|
* @param string|array $components |
| 810 |
|
* @return $this |
| 811 |
|
*/ |
| 812 |
|
public function addGridTopComponents($components): self |
| 813 |
|
{ |
| 814 |
|
if (is_string($components)) { |
| 815 |
|
$components = [$components]; |
| 816 |
|
} |
| 817 |
|
$currentComponents = $this->components[ModulePosition::GRID][ModulePosition::TOP]; |
| 818 |
|
$this->components[ModulePosition::GRID][ModulePosition::TOP] = array_merge($currentComponents, $components); |
| 819 |
|
return $this; |
| 820 |
|
} |
| 821 |
|
|
| 822 |
|
/** |
| 823 |
|
* @return $array |
|
@@ 846-854 (lines=9) @@
|
| 843 |
|
* @param string|array $components |
| 844 |
|
* @return $this |
| 845 |
|
*/ |
| 846 |
|
public function addGridBottomComponents($components): self |
| 847 |
|
{ |
| 848 |
|
if (is_string($components)) { |
| 849 |
|
$components = [$components]; |
| 850 |
|
} |
| 851 |
|
$currentComponents = $this->components[ModulePosition::GRID][ModulePosition::BOTTOM]; |
| 852 |
|
$this->components[ModulePosition::GRID][ModulePosition::BOTTOM] = array_merge($currentComponents, $components); |
| 853 |
|
return $this; |
| 854 |
|
} |
| 855 |
|
|
| 856 |
|
/** |
| 857 |
|
* @return $array |
|
@@ 880-888 (lines=9) @@
|
| 877 |
|
* @param string|array $components |
| 878 |
|
* @return $this |
| 879 |
|
*/ |
| 880 |
|
public function addGridButtonsComponents($components): self |
| 881 |
|
{ |
| 882 |
|
if (is_string($components)) { |
| 883 |
|
$components = [$components]; |
| 884 |
|
} |
| 885 |
|
$currentComponents = $this->components[ModulePosition::GRID][ModulePosition::BUTTONS]; |
| 886 |
|
$this->components[ModulePosition::GRID][ModulePosition::BUTTONS] = array_merge($components, $currentComponents); |
| 887 |
|
return $this; |
| 888 |
|
} |
| 889 |
|
|
| 890 |
|
/** |
| 891 |
|
* @return $array |