|
@@ 832-840 (lines=9) @@
|
| 829 |
|
* @param string|array $components |
| 830 |
|
* @return $this |
| 831 |
|
*/ |
| 832 |
|
public function addGridTopComponents($components) |
| 833 |
|
{ |
| 834 |
|
if (is_string($components)) { |
| 835 |
|
$components = [$components]; |
| 836 |
|
} |
| 837 |
|
$currentComponents = $this->components[ModulePosition::GRID][ModulePosition::TOP]; |
| 838 |
|
$this->components[ModulePosition::GRID][ModulePosition::TOP] = array_merge($currentComponents, $components); |
| 839 |
|
return $this; |
| 840 |
|
} |
| 841 |
|
|
| 842 |
|
/** |
| 843 |
|
* @return $array |
|
@@ 866-874 (lines=9) @@
|
| 863 |
|
* @param string|array $components |
| 864 |
|
* @return $this |
| 865 |
|
*/ |
| 866 |
|
public function addGridBottomComponents($components) |
| 867 |
|
{ |
| 868 |
|
if (is_string($components)) { |
| 869 |
|
$components = [$components]; |
| 870 |
|
} |
| 871 |
|
$currentComponents = $this->components[ModulePosition::GRID][ModulePosition::BOTTOM]; |
| 872 |
|
$this->components[ModulePosition::GRID][ModulePosition::BOTTOM] = array_merge($currentComponents, $components); |
| 873 |
|
return $this; |
| 874 |
|
} |
| 875 |
|
|
| 876 |
|
/** |
| 877 |
|
* @return $array |
|
@@ 900-908 (lines=9) @@
|
| 897 |
|
* @param string|array $components |
| 898 |
|
* @return $this |
| 899 |
|
*/ |
| 900 |
|
public function addGridButtonsComponents($components) |
| 901 |
|
{ |
| 902 |
|
if (is_string($components)) { |
| 903 |
|
$components = [$components]; |
| 904 |
|
} |
| 905 |
|
$currentComponents = $this->components[ModulePosition::GRID][ModulePosition::BUTTONS]; |
| 906 |
|
$this->components[ModulePosition::GRID][ModulePosition::BUTTONS] = array_merge($components, $currentComponents); |
| 907 |
|
return $this; |
| 908 |
|
} |
| 909 |
|
|
| 910 |
|
/** |
| 911 |
|
* @return $array |