fix clear and copy week
This commit is contained in:
@@ -14,10 +14,14 @@ use yii\bootstrap\Widget;
|
||||
class TimeTableMonthView extends Widget
|
||||
{
|
||||
public $timeTable;
|
||||
public $actionsColumn;
|
||||
|
||||
|
||||
public function run() {
|
||||
return $this->render('_timetable', [ 'timeTable' => $this->timeTable]);
|
||||
return $this->render('_timetable', [
|
||||
'timeTable' => $this->timeTable,
|
||||
'actionsColumn' => ( isset($this->actionsColumn) ? $this->actionsColumn : null)
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +32,9 @@ class TimeTableMonthView extends Widget
|
||||
* @return string
|
||||
*/
|
||||
return static function ($week) use ($weekDay) {
|
||||
return TimeTableMonthDayView::widget(['day' => $week->getWeekDay($weekDay)]);
|
||||
return TimeTableMonthDayView::widget([
|
||||
'day' => $week->getWeekDay($weekDay),
|
||||
]);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user