Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to Highlight the Date #1253

Open
jayadeepan1304 opened this issue Sep 26, 2024 · 0 comments
Open

Need to Highlight the Date #1253

jayadeepan1304 opened this issue Sep 26, 2024 · 0 comments

Comments

@jayadeepan1304
Copy link

jayadeepan1304 commented Sep 26, 2024

function calenderPicker(fromcode, tocode, fromname, toname, onwarddate) {

let search = {
    fromStationCode: fromcode,
    fromStationName: fromname,
    toStationCode: tocode,
    toStationName: toname,
    onwardDate: onwarddate
};
const [pickeryear, pickermonth, pickerday] = onwarddate.split('-').map(Number);

$('#datePickerInput').pickadate({
    format: 'ddd, dd mmm',
	today: false,
	clear: false,
	firstday: 1,
	onOpen: function() {
		$('.picker__holder').removeAttr('inert');
		this.$node.focus();
	},
    onSet: function() {
        const selectedDate = this.get('select', 'yyyy-mm-dd');
        search.onwardDate = selectedDate;
		if(search.onwardDate) {
			location.href = buildSearchUrl(search);
		}
    },
    onClose: function() {
		$('.picker__holder').attr('inert', true);
    }
});

}

here i need to highlight the onwarddate in the pickadate how to do that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant