1818
1919/**
2020 * Class Editable
21+ *
2122 * @package yii2mod\editable
2223 */
2324class Editable extends InputWidget
2425{
2526 /**
26- * @var string the type of input. Type of input.
27+ * @var string the type of input. Type of input
2728 */
2829 public $ type = 'text ' ;
2930
3031 /**
31- * @var string the Mode of editable, can be popup or inline.
32+ * @var string the Mode of editable, can be popup or inline
3233 */
3334 public $ mode = 'inline ' ;
3435
3536 /**
36- * @var string|array Url for submit, e.g. '/post'.
37+ * @var string|array Url for submit, e.g. '/post'
3738 */
3839 public $ url ;
3940
4041 /**
41- * @var array the options for the X-editable.js plugin.
42+ * @var array the options for the X-editable.js plugin
4243 */
4344 public $ pluginOptions = [];
4445
4546 /**
46- * @var array the event handlers for the X-editable.js plugin.
47+ * @var array the event handlers for the X-editable.js plugin
4748 */
4849 public $ clientEvents = [];
4950
50-
5151 /**
5252 * Initializes the widget.
5353 */
@@ -56,7 +56,7 @@ public function init()
5656 if ($ this ->url === null ) {
5757 throw new InvalidConfigException ("You must setup the 'Url' property. " );
5858 }
59-
59+
6060 if (!isset ($ this ->options ['id ' ])) {
6161 $ this ->options ['id ' ] = $ this ->hasModel () ? Html::getInputId ($ this ->model , $ this ->attribute ) : $ this ->getId ();
6262 }
@@ -112,7 +112,7 @@ protected function registerClientScript()
112112
113113 /**
114114 * Return plugin options in json format
115- *
115+ *
116116 * @return string
117117 */
118118 public function getPluginOptions ()
@@ -132,7 +132,7 @@ public function getPluginOptions()
132132
133133 /**
134134 * Register client events
135- *
135+ *
136136 * @param $id
137137 */
138138 public function registerClientEvents ($ id )
@@ -147,7 +147,7 @@ public function registerClientEvents($id)
147147
148148 /**
149149 * Return link text
150- *
150+ *
151151 * @return mixed|string
152152 */
153153 protected function getLinkText ()
@@ -173,7 +173,7 @@ protected function getLinkText()
173173
174174 /**
175175 * To ensure that `getPrimaryKey()` and `getIsNewRecord()` methods are implemented in model.
176- *
176+ *
177177 * @return bool
178178 */
179179 protected function hasActiveRecord ()
0 commit comments