This repository was archived by the owner on Feb 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -191,15 +191,29 @@ public function setActions(array $actions)
191191 {
192192 if (count ($ actions ) > 0 ) {
193193 foreach ($ actions as $ action ) {
194- $ newAction = new MultiselectAction ($ this ->datatableName );
195- $ this ->actions [] = $ newAction ->set ($ action );
194+ $ this ->addAction ($ action );
196195 }
197196 } else {
198197 throw new Exception ('MultiselectColumn::setActions(): The actions array should contain at least one element. ' );
199198 }
200199
201200 return $ this ;
202201 }
202+
203+ /**
204+ * Add action.
205+ *
206+ * @param array $action
207+ *
208+ * @return $this
209+ */
210+ public function addAction (array $ action )
211+ {
212+ $ newAction = new MultiselectAction ($ this ->datatableName );
213+ $ this ->actions [] = $ newAction ->set ($ action );
214+
215+ return $ this ;
216+ }
203217
204218 /**
205219 * Get attributes.
Original file line number Diff line number Diff line change 1+ sg :
2+ datatables :
3+ confirmMessage : " Ste si istý?"
4+ selectError : " Musíte vybrať aspoň jeden prvok."
5+ actions :
6+ title : " Akcie"
7+ show : " Zobraziť"
8+ edit : " Upraviť"
9+ daterange :
10+ apply : " Aplikovať"
11+ cancel : " Zrušiť"
12+ format : " DD.MM.YYYY"
You can’t perform that action at this time.
0 commit comments