Skip to main content

Search and Top Navigation

#4306 closed feature (duplicate)

Opened March 09, 2009 04:53PM UTC

Closed April 03, 2013 06:44PM UTC

Datepicker: Expose option to append to something else then body

Reported by: jzaefferer Owned by:
Priority: major Milestone: 1.11.0
Component: ui.datepicker Version: 1.7
Keywords: Cc:
Blocked by: Blocking:
Description

Currently the datepicker is always appended to the body element, hardcoded (except inline datepickers). The code is even scattered across the plugin, so to change it I have to change various places.

A potential name for the option would be "appendTo", accepting a selector/jQuery object, with the default of "body" or document.body.

For a usecase, see http://groups.google.com/group/jquery-ui-dev/browse_thread/thread/49a59aa4dfb6e96e

Attachments (0)
Change History (10)

Changed March 09, 2009 04:55PM UTC by jzaefferer comment:1

description: Currently the datepicker is always appended to the body element, hardcoded (except inline datepickers). The code is even scattered across the plugin, so to change it I have to change various places. \ \ A potential name for the option would be "appendTo", accepting a selector/jQuery object, with the default of "body" or document.body. \ \ For a usecase, see (ui-dev thread).Currently the datepicker is always appended to the body element, hardcoded (except inline datepickers). The code is even scattered across the plugin, so to change it I have to change various places. \ \ A potential name for the option would be "appendTo", accepting a selector/jQuery object, with the default of "body" or document.body. \ \ For a usecase, see http://groups.google.com/group/jquery-ui-dev/browse_thread/thread/49a59aa4dfb6e96e

Changed April 24, 2009 11:48AM UTC by coeamyd comment:2

The same option would apply to the Dialog control.

Changed May 07, 2009 11:36AM UTC by jzaefferer comment:3

milestone: TBD1.next

Changed March 03, 2011 09:08AM UTC by centi comment:4

Hi. Is there any chance that this will be fixed soon? Now there is no way to use this datepicker in a scrollable element.

Changed March 03, 2011 12:59PM UTC by scottgonzalez comment:5

This won't be fixed until datepicker is rewritten, which is currently planned for the 2.0 release, but it's possible that it can land in the 1.9 release.

Changed June 26, 2012 01:22AM UTC by scottgonzalez comment:6

type: enhancementfeature

Changed October 03, 2012 03:42PM UTC by scottgonzalez comment:7

milestone: 1.next1.11.0

Changed October 16, 2012 08:42PM UTC by petersendidit comment:8

status: newopen
summary: Expose option to append to something else then bodyDatepicker: Expose option to append to something else then body

Changed October 17, 2012 04:32AM UTC by mikesherov comment:9

#4591 is a duplicate of this ticket.

Changed April 03, 2013 06:44PM UTC by scottgonzalez comment:10

resolution: → duplicate
status: openclosed

Duplicate of #9013.Closing as a duplicate of #9013 even though this is much older because the newer ticket addresses the specific implementation we'll use.