Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Twitter Sign In with OpenID Sign In with Google

Sign In Sign Up

Tagged

Welcome to the Jo support forums! Please Sign Up and join in the discussion. You can also Sign In instantly with Twitter, OpenID or your Google ID.
*TIP* NumPad Keys Input in Jo
  • almahdialmahdi August 2011
    Posts: 9

    I thought this maybe helpful to someone. I have extended a lot of Jo's functionality. But my work is a mess. So, when I clean up, I may create a library or an extension to Jo. For the Time being, I will post my code here.


    Sometimes, you want a JoInput Field that display's android Numbers Keyboard instead of the full keyboard, thus, I have Extended JoInput to display androids numpad.
    [quote]
    joNumInput = function(data) {
    joInput.apply(this, arguments);
    };
    joNumInput.extend(joInput, {
    tagName: "input",
    type: "number",
    createContainer: function() {
    var o = joDOM.create(this);
    if (!o)
    return;
    o.setAttribute("type", "number");
    o.setAttribute("tabindex", "1");
    o.contentEditable = this.enabled;
    return o;
    }
    });
    [/quote]