Fixed #4669 - Calendar: Week Number customization

This commit is contained in:
tugcekucukoglu 2023-11-21 21:27:59 +03:00
parent 3b3d9039d4
commit 3554ba1a9f
2 changed files with 21 additions and 27 deletions

View file

@ -182,6 +182,10 @@ export interface CalendarPassThroughOptions {
* Used to pass attributes to the week header's DOM element.
*/
weekHeader?: CalendarPassThroughOptionType;
/**
* Used to pass attributes to the week header label's DOM element.
*/
weekHeaderLabel?: CalendarPassThroughOptionType;
/**
* Used to pass attributes to the table header cell's DOM element.
*/
@ -756,6 +760,20 @@ export interface CalendarSlots {
*/
years: string[] | undefined;
}): VNode[];
/**
* Custom week header label template.
*/
weekheaderlabel(): VNode[];
/**
* Custom week label template.
* @param {Object} scope - weeklabel slot's params.
*/
weeklabel(scope: {
/**
* Number of the week
*/
weekNumber: number;
});
/**
* Custom dropdown icon template.
* @param {Object} scope - dropdown icon slot's params.
@ -806,30 +824,6 @@ export interface CalendarSlots {
*/
class: any;
}): VNode[];
/**
* Custom header for the showWeek
*/
showWeekHeader(): VNode[];
/**
* Custom showWeek template
* @param {Object} scope - showWeek slot params
*/
showWeek(scope: {
/**
* Date information corresponding to first day of week
*/
date: {
day: number;
month: number;
year: number;
today: boolean;
selectable: boolean;
};
/**
* Internally calculated week number
*/
weekNumber: number;
}): VNode[];
}
/**