Added a 'attachedToInput' parameter for date/datetime/time to attach the datapicker to the input rather than the icon.