1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    104
    Vote Rating
    0
    rbahumi is on a distinguished road

      0  

    Default Unanswered: how to add +/- icons to sencha Ext.field.Slider

    Unanswered: how to add +/- icons to sencha Ext.field.Slider


    Hi,

    I want like to add a 'plus' and 'minus' icons at both ends of the slider, so a user can use them to fine-tune the selected value. (a combination between a slider and 'Ext.field.Spinner').

    Is there a build in functionality for doing so I am not aware of?
    If not, how can I make this work?

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,624
    Vote Rating
    331
    Answers
    550
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    I had to do this on a recent project. I just wrapped the slider in a container along with a couple of components at either end to hold the + and -. A bit of CSS later and they all looked like the same component.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    104
    Vote Rating
    0
    rbahumi is on a distinguished road

      0  

    Default


    Thank you for your replay.
    I wish to do this inside a form, therefor using a field, and having the 'label' set as all the rest of the fields.

    Did you use 'Ext.field.Slider' or 'Ext.slider.Slider'?

    Would you mind sharing your code here?

    Regards,
    Roei.

  4. #4
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,624
    Vote Rating
    331
    Answers
    550
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Please post questions in the correct forum. When I originally answered your question I thought we were talking abou ExtJS, not Touch.

    I didn't require the label in my use case but I can see how that would be a problem. Off the top of my head I see no reason why this couldn't be done by wrapping it in a FieldContainer rather than a normal container. No idea about Touch but I imagine it's similar.

Thread Participants: 1

Tags for this Thread