@taiga-ui/core
Version:
Core library for creating Angular components and applications using Taiga UI
21 lines (20 loc) • 568 B
TypeScript
import { TuiDay, type TuiMonth } from '@taiga-ui/cdk/date-time';
/**
* Calculated day on a calendar grid
* @return resulting day on these coordinates (could exceed passed month)
*/
export declare const getDayFromMonthRowCol: ({ month, rowIndex, colIndex, firstDayOfWeek, }: {
/**
* column in a calendar
*/
colIndex: number;
/**
* first day of the week index (Sunday - 0, Saturday - 6)
*/
firstDayOfWeek: 0 | 1 | 2 | 3 | 4 | 5 | 6;
month: TuiMonth;
/**
* row in a calendar
*/
rowIndex: number;
}) => TuiDay;