Results 1 to 3 of 3
  1.    #1  
    Did some searching on this and also looked at the WebOS API's but not having much luck.

    I have a list of objects that I can display no problem, however I want to be able to edit some of the items in the list. According to the doc using INPUT instead of DIV will accomplish this, but it doesn't, at least not the way that is nice.

    So, my list model points to an item template which I have as follows:

    Code:
    <div class="row textfield" x-mojo-tap-highlight="immediate">
        <table width=100%>
            <tr>
                <td><div style="font-size: 12px">#{-hole}</div></td>
                <td><input style="font-size: 12px">#{-distance}</input></td>
                <td><input style="font-size: 12px">#{-par}</input></td>
                <td><input style="font-size: 12px">#{-handicap}</input></td>
            </tr>
        </table>
    </div>
    What I get is 3 additional text input fields and also the output of the values from the list. The input fields do not contain the values from the list. So, I end up having 6 objects that looks ugly.

    I have also tried the following, and that doesn't work either.
    Code:
    <div class="row textfield" x-mojo-tap-highlight="immediate">
        <table width=100%>
            <tr>
                <td><div style="font-size: 12px">#{-hole}</div></td>
                <td><div x-mojo-element="TextField" style="font-size: 12px">#{-distance}</div></td>
                <td><div x-mojo-element="TextField" style="font-size: 12px">#{-par}</div></td>
                <td><div x-mojo-element="TextField" style="font-size: 12px">#{-handicap}</div></td>
            </tr>
        </table>
    </div>
    I'm sure that there is a simple of way of having several elements in an already populated list as being editable.

    Appreciate any help whilst I continue to look into this.
  2. #2  
    While I've haven't attempted an editable list yet, I do know that:
    Code:
    <input>#{-asdf}</input>
    is not how you define a text field.

    Assuming using inputs is going to work, this is how you would define them:
    Code:
    <input type="text" value="#{-asdf}" />
  3.    #3  
    Thanks oil. That's pretty much what I needed. It's still not 100% but definitely closer to what I need

Posting Permissions