Results 1 to 2 of 2

Thread: TriggerField

  1. #1
    Sencha Premium User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    888
    Answers
    10

    Default TriggerField

    Hello again everyone.

    I keep on preparing the migration to gxt 3, and now another question arose.

    Prior to gxt 3, I had a class extending TrigerField, and calling setTriggerStyle to change the trigger button icon.

    How may I do that on gxt 3?

    Thanks and regards,
    Michel.

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Location
    Lima, Peru
    Posts
    43
    Answers
    5

    Default

    Using appearance pattern:

    SearchTriggerFieldCell.java
    https://gist.github.com/4520311

    SearchTriggerFieldDefaultAppearance.java
    https://gist.github.com/4520314

    SearchTriggerField.java
    https://gist.github.com/4520316

    Add to GWT module
    Code:
    <replace-with class="com.rhem.client.widget.SearchTriggerFieldDefaultAppearance">
        <when-type-is class="com.rhem.client.widget.SearchTriggerFieldCell.SearchTriggerFieldAppearance" />
      </replace-with>

    For TwinTriggerField see http://www.sencha.com/forum/showthre...l=1#post927461

Posting Permissions

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