Commit 1b4e9d98 by semenov

start widget

parent f28ae5c3
......@@ -45,7 +45,7 @@ class CoreAsset extends AssetBundle
* @var array
*/
public $css = [
'fullcalendar.css',
'fullcalendar.min.css',
];
/**
......@@ -53,7 +53,7 @@ class CoreAsset extends AssetBundle
* @var array
*/
public $js = [
'fullcalendar.js',
'fullcalendar.min.js',
'lang-all.js',
];
......@@ -62,8 +62,8 @@ class CoreAsset extends AssetBundle
* @var array
*/
public $depends = [
'yii2fullcalendar\MomentAsset',
'yii2fullcalendar\PrintAsset',
'skeeks\widget\fullcalendar\MomentAsset',
'skeeks\widget\fullcalendar\PrintAsset',
'yii\jui\JuiAsset'
];
......
......@@ -26,7 +26,8 @@ class MomentAsset extends AssetBundle
* @var array
*/
public $js = [
'moment.js'
//'moment.js'
'min/moment.min.js'
];
}
......@@ -109,11 +109,14 @@ class Event extends Model
*/
public $textColor;
public $constraint;
public function rules()
{
return [
['id', 'integer'],
['title, allDay, start, end, url, className, source, color, backgroundColor, borderColor, textColor', 'safe'],
['title, allDay, start, end, url, className, source, color, backgroundColor, borderColor, textColor, constraint', 'safe'],
['editable, startEditable, durationEditable', 'boolean'],
];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment