File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ class Checkbox extends Widget
1818 private $ limit = 1 ;
1919 private $ useHiddenInput = true ;
2020 private $ color = '' ;
21+ private Wing $ wing ;
2122 private $ swing = [];
2223
2324 public function __construct (string $ column , array $ select )
@@ -46,6 +47,11 @@ public function limit(int $num)
4647 return $ this ;
4748 }
4849
50+ /**
51+ * @param $color
52+ * red blue green yellow
53+ * @return $this
54+ */
4955 public function color ($ color )
5056 {
5157 switch ($ color ) {
@@ -68,6 +74,14 @@ public function withoutHiddenInput()
6874 return $ this ;
6975 }
7076
77+ /**
78+ * @param Wing $wing
79+ */
80+ public function setWing (Wing $ wing )
81+ {
82+ $ this ->wing = $ wing ;
83+ }
84+
7185 /**
7286 * @param $condition integer | array
7387 * @param \Closure $closure
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ class Select extends Widget
2121 private $ direction = 'down ' ;
2222 private $ useSearch = false ;
2323 private $ useHiddenInput = true ;
24+ private Wing $ wing ;
2425 private $ swing = [];
2526
2627 public function __construct (string $ column , array $ select )
@@ -97,6 +98,14 @@ public function withoutHiddenInput()
9798 return $ this ;
9899 }
99100
101+ /**
102+ * @param Wing $wing
103+ */
104+ public function setWing (Wing $ wing )
105+ {
106+ $ this ->wing = $ wing ;
107+ }
108+
100109 /**
101110 * @param $condition integer | array
102111 * @param \Closure $closure
You can’t perform that action at this time.
0 commit comments