missing option render in extension

hi,

in the extension Timepicker, phpmaker afford us to enter “timeformat”, “steps” and “options”.
i tried the options by entering {‘minTime’: ‘8:00am’,‘maxTime’: ‘9:00pm’} to have a range from 8am to 9pm.
once i generated the project, phpmaker does not take care of thos range.
so i looked up the html code and see it forget to “generated” the options attribut (only timeformat and step are put) :
example of the rendered html :

loadjs.ready([“fedtadd”, “timepicker”], function() {
ew.createTimePicker(“fedtadd”, “x_edt_heure_debut”, {“timeFormat”:“H” + ew.TIME_SEPARATOR + “i”,“step”:15});

so whatever we put into “options” field in phpmaker, it is ignored by the generator

should add the options pattern too:
loadjs.ready([“fedtadd”, “timepicker”], function() {
ew.createTimePicker(“fedtadd”, “x_edt_heure_debut”, {“timeFormat”:“H” + ew.TIME_SEPARATOR + “i”,“step”:15,‘minTime’: ‘8:00am’,‘maxTime’: ‘9:00pm’);

well i success tried !

when i add myself the missing part of the code in the generated, it works :
see there, i added the option pattern : ,‘minTime’: ‘8:00am’,‘maxTime’: ‘9:00pm’

so i wonder why phpmaker ignore what we put in “options” field without generate it

amiens80 wrote:

i tried the options by entering {‘minTime’: ‘8:00am’,‘maxTime’: ‘9:00pm’}

You need to use correct JSON syntax (i.e. double quotes).

hi,

i read it too in the help doc and following too the example/doc of the orginal coder which were working with single quote.
i just tested with double quote and it runs fine.

also, thank you for the tips.

you’re a Lord!

The extension needs to parse the options you added and merge its own options, so your options must be in correct JSON syntax so that it can be parsed by JSON.parse().