MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / isYearDisabled

Function isYearDisabled

core/src/components/datetime/utils/state.ts:14–24  ·  view source on GitHub ↗
(refYear: number, minParts?: DatetimeParts, maxParts?: DatetimeParts)

Source from the content-addressed store, hash-verified

12import { getNextMonth, getPreviousMonth } from './manipulation';
13
14export const isYearDisabled = (refYear: number, minParts?: DatetimeParts, maxParts?: DatetimeParts) => {
15 if (minParts && minParts.year > refYear) {
16 return true;
17 }
18
19 if (maxParts && maxParts.year < refYear) {
20 return true;
21 }
22
23 return false;
24};
25
26/**
27 * Returns true if a given day should

Callers 1

isMonthDisabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected