mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Fixed #4669 - Calendar: Week Number customization
This commit is contained in:
parent
3b3d9039d4
commit
3554ba1a9f
2 changed files with 21 additions and 27 deletions
42
components/lib/calendar/Calendar.d.ts
vendored
42
components/lib/calendar/Calendar.d.ts
vendored
|
@ -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[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue