MCPcopy Create free account
hub / github.com/Lobos/react-ui / next

Method next

src/Datepicker/Datetime.js:231–245  ·  view source on GitHub ↗
(stage)

Source from the content-addressed store, hash-verified

229 }
230
231 next (stage) {
232 let d = this.state.current;
233 switch (stage) {
234 case 'year':
235 d = this.changeDate({ year: d.getFullYear() + 18, day: 1 });
236 break;
237 case 'month':
238 d = this.changeDate({ year: d.getFullYear() + 1, day: 1 });
239 break;
240 case 'day':
241 d = this.changeDate({ month: d.getMonth() + 1, day: 1 });
242 break;
243 }
244 this.stateChange({ current: d });
245 }
246
247 pre (stage) {
248 let d = this.state.current;

Callers 3

validateChildKeysFunction · 0.80
isNodeFunction · 0.80
traverseAllChildrenImplFunction · 0.80

Calls 2

changeDateMethod · 0.95
stateChangeMethod · 0.95

Tested by

no test coverage detected