Todd Penny
Posts: 0
Joined: Sun Jan 12, 2014 4:29 pm

How do I set the UI input component value for a date data type?

I am using the input component with the data type of date and want to set the initial value to a JS date.

For text it seems to work like this...

var text = Apperyio.storage.model.get();
Apperyio('modelInput').val(text);

For date values, I was trying this

var d = new Date();
Apperyio('modelInput').val(d);

where modelInput is the Input component name.

I cannot find any documentation in general that describes ALL the UI component methods with examples, does that exist somewhere?

Return to “Issues”