|
@@ 826-834 (lines=9) @@
|
| 823 |
|
* @param string|array $components |
| 824 |
|
* @return $this |
| 825 |
|
*/ |
| 826 |
|
public function addGridTopComponents($components): self |
| 827 |
|
{ |
| 828 |
|
if (is_string($components)) { |
| 829 |
|
$components = [$components]; |
| 830 |
|
} |
| 831 |
|
$currentComponents = $this->components[ModulePosition::GRID][ModulePosition::TOP]; |
| 832 |
|
$this->components[ModulePosition::GRID][ModulePosition::TOP] = array_merge($currentComponents, $components); |
| 833 |
|
return $this; |
| 834 |
|
} |
| 835 |
|
|
| 836 |
|
/** |
| 837 |
|
* @return mixed $array |
|
@@ 859-867 (lines=9) @@
|
| 856 |
|
* @param string|array $components |
| 857 |
|
* @return $this |
| 858 |
|
*/ |
| 859 |
|
public function addGridBottomComponents($components): self |
| 860 |
|
{ |
| 861 |
|
if (is_string($components)) { |
| 862 |
|
$components = [$components]; |
| 863 |
|
} |
| 864 |
|
$currentComponents = $this->components[ModulePosition::GRID][ModulePosition::BOTTOM]; |
| 865 |
|
$this->components[ModulePosition::GRID][ModulePosition::BOTTOM] = array_merge($currentComponents, $components); |
| 866 |
|
return $this; |
| 867 |
|
} |
| 868 |
|
|
| 869 |
|
/** |
| 870 |
|
* @return $array |
|
@@ 892-900 (lines=9) @@
|
| 889 |
|
* @param string|array $components |
| 890 |
|
* @return $this |
| 891 |
|
*/ |
| 892 |
|
public function addGridButtonsComponents($components): self |
| 893 |
|
{ |
| 894 |
|
if (is_string($components)) { |
| 895 |
|
$components = [$components]; |
| 896 |
|
} |
| 897 |
|
$currentComponents = $this->components[ModulePosition::GRID][ModulePosition::BUTTONS]; |
| 898 |
|
$this->components[ModulePosition::GRID][ModulePosition::BUTTONS] = array_merge($components, $currentComponents); |
| 899 |
|
return $this; |
| 900 |
|
} |
| 901 |
|
|
| 902 |
|
/** |
| 903 |
|
* @return $array |