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
18
18
private $ limit = 1 ;
19
19
private $ useHiddenInput = true ;
20
20
private $ color = '' ;
21
+ private Wing $ wing ;
21
22
private $ swing = [];
22
23
23
24
public function __construct (string $ column , array $ select )
@@ -46,6 +47,11 @@ public function limit(int $num)
46
47
return $ this ;
47
48
}
48
49
50
+ /**
51
+ * @param $color
52
+ * red blue green yellow
53
+ * @return $this
54
+ */
49
55
public function color ($ color )
50
56
{
51
57
switch ($ color ) {
@@ -68,6 +74,14 @@ public function withoutHiddenInput()
68
74
return $ this ;
69
75
}
70
76
77
+ /**
78
+ * @param Wing $wing
79
+ */
80
+ public function setWing (Wing $ wing )
81
+ {
82
+ $ this ->wing = $ wing ;
83
+ }
84
+
71
85
/**
72
86
* @param $condition integer | array
73
87
* @param \Closure $closure
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ class Select extends Widget
21
21
private $ direction = 'down ' ;
22
22
private $ useSearch = false ;
23
23
private $ useHiddenInput = true ;
24
+ private Wing $ wing ;
24
25
private $ swing = [];
25
26
26
27
public function __construct (string $ column , array $ select )
@@ -97,6 +98,14 @@ public function withoutHiddenInput()
97
98
return $ this ;
98
99
}
99
100
101
+ /**
102
+ * @param Wing $wing
103
+ */
104
+ public function setWing (Wing $ wing )
105
+ {
106
+ $ this ->wing = $ wing ;
107
+ }
108
+
100
109
/**
101
110
* @param $condition integer | array
102
111
* @param \Closure $closure
You can’t perform that action at this time.
0 commit comments