Page 1 of 1

jQuery widget references in javascript

Posted: Fri Apr 24, 2015 2:01 am
by Leland Chemerys

I am trying to reference Appery UI items within Javascript but there is only one reference item that I can find in your documentation and it is for a DOM:

var input = Apperyio('input');
alert (input.val());

Do you have a comprehensive list of functions contained in your Appery library? I am ultimately trying to reference the value of a selected item from a jQuery UI Widget specifically selectMenu and datepicker. Can you give some examples of those? The following does not work for a selectmenu widget:
var hour = Apperyio('listCreateHour').selectmenu.selected().val();

I would prefer to not map everything to a local variable if the information is already stored as part of the UI and can be referenced, seems inefficient.

Also is there anyway to invoke the getCurrent option on the datepicker widget?


jQuery widget references in javascript

Posted: Fri Apr 24, 2015 5:46 pm
by Serhii Kulibaba

Hello,

1) In order to get value of select menu
Use:
preApperyio("listCreateHour").val(); /pre

instead of:
prevar hour = Apperyio('listCreateHour').selectmenu.selected().val(); /pre

2) In order to get value of datepicker use:
pre$("[name=datepickerName] input").val();/pre