Page 1 of 1

Multiple input fields in a single Widget.

Posted: Thu May 15, 2014 10:29 am
by mpilo0
Hi, we're attemptint to make a range date picker widget. However we are having issues as to how we would bind the RPG variables for BOTH input fields. basically the range Date Picker is the following: http://eternicode.github.io/bootstrap-d ... on#sandbox

The innerHTML is the following:

Code: Select all

<div class="input-daterange input-group" id="datepicker">
    <input type="text" class="input-sm form-control" name="start" />
    <span class="input-group-addon">to</span>
    <input type="text" class="input-sm form-control" name="end" />
</div>
How would we bing the values of both these fields?

Re: Multiple input fields in a single Widget.

Posted: Fri May 16, 2014 5:32 pm
by David
Unfortunately, the framework will not support this, currently.

A custom widget can be input-capable only if the top-level element is something like <input> or <select>, etc., that it recognizes as an input control. With one of those, it will give you a "value" property that is input-capable, but it does not do that for elements like <div>.

Re: Multiple input fields in a single Widget.

Posted: Wed May 21, 2014 10:13 am
by mpilo0
Ok Thank you for your help!