No problem. It's not ideal but I think this might be closer to what you need:
http://jquery-ui.googlecode.com/svn/trunk/demos/datepicker/icon-trigger.html You will have to set the input to read-only and make it look like a plain text region. An inline datepicker should never be closeable because it's inline and always present. Even in its disabled state it simply turns semi-opaque rather than hidden. The markup combination you want actually goes into more interesting discussions. From the specifications ( http://wiki.jqueryui.com/DatePickerCalendar) we have: - datepicker appears as a popup when attached to a text input field - datepicker appears inline when attached to a div or span Are the above points too restrictive for the majority of use cases out there? Should we allow the user to specify whether they want a datepicker to popup or display inline from whatever trigger they wish via an option? On Sat, Jan 31, 2009 at 11:07 PM, Brandon Aaron <[email protected]>wrote: > Nice! Thanks for moving so quickly on this. However, I think the close > button should not be forced hidden. (I'm assuming it is based on this > thread, I haven't actually checked for myself). It should still be optional > to show the close button. I actually need the close button to show because > as I said before I use the inline datepicker as an > "inline-editable-datepicker". So I actually have a link that shows the > datepicker with no way of hiding it except to choose a date. In other words > The date is shown in plain text (no input) and there is a link next to it > that says, "change date". Clicking that link manually shows the inline > datepicker. > > -- > Brandon Aaron > > On Sat, Jan 31, 2009 at 5:27 AM, Ca-Phun Ung <[email protected]> wrote: > >> Fixed in http://dev.jqueryui.com/changeset/1934 >> >> >> On Fri, Jan 30, 2009 at 10:19 PM, Ca-Phun Ung <[email protected]>wrote: >> >>> Ticket created: http://dev.jqueryui.com/ticket/4003 >>> >>> >>> On Fri, Jan 30, 2009 at 1:04 PM, Richard D. Worth <[email protected]>wrote: >>> >>>> >>>> On Thu, Jan 29, 2009 at 11:51 PM, Ca-Phun Ung <[email protected]>wrote: >>>> >>>>> Hi, >>>>> >>>>> It is by design the button panel is hidden on an inline datepicker - as >>>>> it doesn't make sense to close an inline datepicker. That said, since the >>>>> button panel also has a Today button I'm now contradicting myself by >>>>> saying >>>>> that some people might want the option to show the today button. >>>>> >>>>> I'll go with whatever the masses want here. >>>>> >>>>> We could change it so the inline datepicker hides the Close button only >>>>> and not the whole button panel. >>>> >>>> >>>> +1 >>>> >>>> - Richard >>>> >>>> >>>> >>>> >>> >>> >>> -- >>> Ca-Phun Ung >>> + http://yelotofu.com >>> + hongkong, zce, jquery, php, css, html >>> >> >> >> >> -- >> Ca-Phun Ung >> + http://yelotofu.com >> + hongkong, zce, jquery, php, css, html >> >> >> > > > > -- Ca-Phun Ung + http://yelotofu.com + hongkong, zce, jquery, php, css, html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
