Results 1 to 4 of 4

Thread: Keyboard in a view as fields

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
      0  

    Default Keyboard in a view as fields

    Hi,

    I have the intention to simulate a numeric keyboard inside a view as describe the draft joined to this post.

    The current number filled will be a textfield, the backward key will be a button with a picture in background, and digit will be simple buttons.

    I have several questions :

    1 : how to put a picture in background of a button ?

    2 : how to put several buttons or fields on the same row ?

    Thanks in advance of your reply.

    Regards
    Attached Images Attached Images

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    To have an icon in a button you can use iconCls on the button.

    To get a layout you could use a mix of vbox and hbox layouts but beware of layout performance. You could use default layout, use CSS like display : inline-block; on the items and handle sizing in CSS also.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Location
    Rennes - France
    Posts
    172
    Answers
    2
    Vote Rating
    1
      0  

    Default

    and what if i want to add a picture (not a sencha icon) to my button ?

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    Use iconCls
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •