Datetime BootStrap 2
Datetime BootStrap 2
brimestone
Posts: 5Questions: 3Answers: 0
trying to add the following options ( forceParse, clearBtn ) but cant find a way. ( seems like the only option thats working are pickDate, pickTime and format ).
{
label: "Due Date",
name: "duedate",
type: "datetime",
opts: {
forceParse: false,
clearBtn: true,
pickDate: true,
pickTime: true,
format: "MM/DD/YYYY hh:mm A",
}
}
This discussion has been closed.
Answers
I don't see a
forceParse
option in the documentation for the Data picker plug-in.I think
pickDate
andpickTime
might have also been removed and based on the format now. Its a fast moving library that one!Allan
I see. I see the following options ( showClear, useStrict, keepInvalid... ) how to i set those option?
i tried it on opts: { ..., .... } but it doesn't work.
Can you show me your initialisation please? Placing them in the field's
opts
property should work. Worth also checking that you are using the latest version of the Date picker library.Allan
I'm using version 4.7.14
I've just tried that in my local example and it appears to work as expected (frustratingly!). Toggling the
showTodayButton
for example will remove the today button.Are you able to give me a link to your page so I can debug it please? PM me by clicking my name above and then "Send Message" if you don't want to make it public.
Allan