1717class ColumnPickerControl extends DataControl
1818{
1919 #[Persistent] public ?string $ column = null ;
20- public array $ onPick = [];
20+ public array $ onPick = [];
2121
2222
2323 public function __construct (
@@ -34,24 +34,24 @@ public function loadState(array $params): void
3434 }
3535
3636
37- public function render (): void
38- {
39- $ this ->template ->column = $ this ->column ;
37+ public function render (): void
38+ {
39+ $ this ->template ->column = $ this ->column ;
4040 $ this ->template ->columns = $ this ->columns ;
4141 $ this ->template ->rowColumn = $ this ->main ->getRowColumn ();
42- $ this ->template ->render ($ this ->main ->getView ()->columnPickerTemplate );
43- }
42+ $ this ->template ->render ($ this ->main ->getView ()->columnPickerTemplate );
43+ }
4444
4545
46- public function handlePick (?string $ column = null ): void
47- {
48- $ this ->column = $ column ;
46+ public function handlePick (?string $ column = null ): void
47+ {
48+ $ this ->column = $ column ;
4949 if (!isset ($ this ->columns [$ column ]) || $ this ->columns [$ column ]->hide ) {
5050 throw new BadRequestException ;
5151 }
52- if ($ this ->presenter ->isAjax ()) {
53- $ this ->onPick ($ this );
54- $ this ->redrawControl ();
55- }
56- }
52+ if ($ this ->presenter ->isAjax ()) {
53+ $ this ->onPick ($ this );
54+ $ this ->redrawControl ();
55+ }
56+ }
5757}
0 commit comments