Skip to content

Commit

Permalink
examples.calendar.weekview.MainContainer: model => stateProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiu committed Nov 29, 2024
1 parent 80b64c5 commit 0703c56
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/calendar/weekview/MainContainer.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import MainContainerModel from '../../../src/calendar/view/MainContainerModel.mjs';
import Viewport from '../../../src/container/Viewport.mjs';
import WeekComponent from '../../../src/calendar/view/week/Component.mjs';
import MainContainerStateProvider from '../../../src/calendar/view/MainContainerStateProvider.mjs';
import Viewport from '../../../src/container/Viewport.mjs';
import WeekComponent from '../../../src/calendar/view/week/Component.mjs';

/**
* @class Neo.examples.calendar.weekview.MainContainer
Expand All @@ -24,10 +24,10 @@ class MainContainer extends Viewport {
* configs. We have two options here:
* 1. Extend Neo.calendar.view.week.Component and add the configs and view model there.
* 2. Just drop them into a parent view.
* @member {Neo.calendar.view.MainContainerModel} model=MainContainerModel
* @member {Neo.calendar.view.MainContainerStateProvider} stateProvider=MainContainerStateProvider
*/
model: {
module: MainContainerModel,
stateProvider: {
module: MainContainerStateProvider,
data : {
currentDate: new Date('2024-07-21')
}
Expand Down

0 comments on commit 0703c56

Please sign in to comment.