File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ### 1.3.11
4
+
5
+ * Added: Adding a help function to disable the input
6
+
3
7
### 1.3.10
4
8
5
9
* Added: --viewBridge option added to create-leaf custard command.
Original file line number Diff line number Diff line change @@ -64,6 +64,16 @@ public function setPlaceholderText($placeholderText)
64
64
$ this ->model ->addHtmlAttribute ("placeholder " , $ placeholderText );
65
65
}
66
66
67
+ public function setDisabled ($ disabled )
68
+ {
69
+ if ($ disabled ) {
70
+ $ this ->addHtmlAttribute ('disabled ' , 'disabled ' );
71
+ } else {
72
+ $ this ->removeHtmlAttribute ('disabled ' );
73
+ }
74
+ $ this ->model ->disabled = $ disabled ;
75
+ }
76
+
67
77
/**
68
78
* Returns a label that the hosting view can use in the HTML output.
69
79
*
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ class ControlModel extends LeafModel
30
30
*/
31
31
public $ label = "" ;
32
32
33
+ public $ disabled ;
34
+
33
35
public function __construct ()
34
36
{
35
37
parent ::__construct ();
You can’t perform that action at this time.
0 commit comments