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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    Use iconCls
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •