support custom attributes for datepicker too