1. #1
    Sencha User
    Join Date
    Jan 2008
    Posts
    45
    Vote Rating
    0
    netslayer is on a distinguished road

      0  

    Question How to dynamically hide/show trigger on trigger field?

    How to dynamically hide/show trigger on trigger field?


    I've created a custom trigger field by extending trigger field and I'm trying to figure out how to implement a way to make it hide and show the trigger by calling a method. TriggerField has a hideTrigger property during initialization but that doesnt help during runtime. I have tried calling hideTrigger with a doLayout but no luck. I know this will affect layout of the component as it should shrink the component width when the trigger is hidden, and reverse when shown.

    ideas?

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    7
    fay will become famous soon enough fay will become famous soon enough

      0  

    Default


    Code:
     
    myTrigger.trigger.setDisplayed(false); // or true

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    The latest Ext versions have a TriggerField.setHideTrigger method.

  4. #4
    Sencha User
    Join Date
    Jan 2008
    Posts
    45
    Vote Rating
    0
    netslayer is on a distinguished road

      0  

    Default


    That worked perfectly! thanks!

Similar Threads

  1. datefield hide when click trigger
    By ajaxvador in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 15 Jul 2010, 11:05 AM
  2. How to show combobox's trigger in EditorGridPanel
    By onur.ozgur.ozkan in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 21 May 2010, 1:11 AM
  3. Replies: 0
    Last Post: 5 Nov 2009, 12:54 PM
  4. Multiple trigger field should replace Trigger and TwinTrigger field
    By armandoxxx in forum Community Discussion
    Replies: 0
    Last Post: 6 Aug 2008, 12:15 AM
  5. Hide Combo Trigger
    By alindsay55661 in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 16 Mar 2007, 5:37 PM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar