Results 1 to 3 of 3

Thread: How to make Button Binding?

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

    Default 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
    413
    Answers
    20
    Vote Rating
    21
      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
      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.

Posting Permissions

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