|
@@ 847-855 (lines=9) @@
|
| 844 |
|
* @param string|array $components |
| 845 |
|
* @return $this |
| 846 |
|
*/ |
| 847 |
|
public function addGridTopComponents($components) |
| 848 |
|
{ |
| 849 |
|
if (is_string($components)) { |
| 850 |
|
$components = [$components]; |
| 851 |
|
} |
| 852 |
|
$currentComponents = $this->components[ModulePosition::GRID][ModulePosition::TOP]; |
| 853 |
|
$this->components[ModulePosition::GRID][ModulePosition::TOP] = array_merge($currentComponents, $components); |
| 854 |
|
return $this; |
| 855 |
|
} |
| 856 |
|
|
| 857 |
|
/** |
| 858 |
|
* @return $array |
|
@@ 881-889 (lines=9) @@
|
| 878 |
|
* @param string|array $components |
| 879 |
|
* @return $this |
| 880 |
|
*/ |
| 881 |
|
public function addGridBottomComponents($components) |
| 882 |
|
{ |
| 883 |
|
if (is_string($components)) { |
| 884 |
|
$components = [$components]; |
| 885 |
|
} |
| 886 |
|
$currentComponents = $this->components[ModulePosition::GRID][ModulePosition::BOTTOM]; |
| 887 |
|
$this->components[ModulePosition::GRID][ModulePosition::BOTTOM] = array_merge($currentComponents, $components); |
| 888 |
|
return $this; |
| 889 |
|
} |
| 890 |
|
|
| 891 |
|
/** |
| 892 |
|
* @return $array |
|
@@ 915-923 (lines=9) @@
|
| 912 |
|
* @param string|array $components |
| 913 |
|
* @return $this |
| 914 |
|
*/ |
| 915 |
|
public function addGridButtonsComponents($components) |
| 916 |
|
{ |
| 917 |
|
if (is_string($components)) { |
| 918 |
|
$components = [$components]; |
| 919 |
|
} |
| 920 |
|
$currentComponents = $this->components[ModulePosition::GRID][ModulePosition::BUTTONS]; |
| 921 |
|
$this->components[ModulePosition::GRID][ModulePosition::BUTTONS] = array_merge($currentComponents, $components); |
| 922 |
|
return $this; |
| 923 |
|
} |
| 924 |
|
|
| 925 |
|
/** |
| 926 |
|
* @return $array |