EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 12, 2024, 04:29:35 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Implement restricted date
Pages: [
1
]
« previous
next »
Print
Author
Topic: Implement restricted date (Read 1820 times)
guruhyes
Newbie
Posts: 8
Implement restricted date
«
on:
November 05, 2022, 07:31:06 AM »
I'm already success implement restricted date..
but my problem is, when i create restricted january only and now is already november,
the datebox view is showing november or current month,
my question in how can i set the datebox base on restricted date i choose , so when user click on datebox it will show january not november or current month ?
Thx for ur answer
Logged
jarry
Administrator
Hero Member
Posts: 2274
Re: Implement restricted date
«
Reply #1 on:
November 06, 2022, 07:38:15 PM »
When the drop-down panel shows, you can set the calendar to the specified month days.
Code:
$('#dd').datebox({
onShowPanel: function(){
if (!$(this).datebox('getValue')){
var c = $(this).datebox('calendar');
c.calendar({
year: 2023,
month: 1
})
}
}
})
Logged
guruhyes
Newbie
Posts: 8
Re: Implement restricted date
«
Reply #2 on:
November 10, 2022, 01:43:07 AM »
Its Works,
thx
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...