1. #1
    Sencha User ITS_luka's Avatar
    Join Date
    Aug 2011
    Location
    Tbilisi, Georgia
    Posts
    19
    Vote Rating
    0
    ITS_luka is on a distinguished road

      0  

    Default Unanswered: How to make Button Binding?

    Unanswered: How to make Button Binding?


    I want TextButton to be disabled while TextField is not filled correctly.

    In GXT 2 there was FormButtonBinder or something, i don't remember.

  2. #2
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    411
    Vote Rating
    21
    Answers
    20
    icfantv will become famous soon enough icfantv will become famous soon enough

      0  

    Default


    I see FormButtonBinding in the 2.x API but not in the 3.x API. Nor do I see it in the legacy API. From the javadocs, it looks like this was meant to monitor the state of a form and the enabled/disabled state of all buttons.

    You might take a look at FormPanel to see if it's usable for your situation. If not, it would be fairly trivial to create something that does the behavior you are seeking. Take a look at the TextField.*valid* methods inherited from the ValueBaseField and Field classes.

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    21
    Vote Rating
    0
    strootman is on a distinguished road

      0  

    Default


    You can combine GXT Fields with the GWT Editor framework.
    https://developers.google.com/web-to...GuideUiEditors

    You achieve binding with the editors, and validation with the fields.

Thread Participants: 2