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
    9
    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,246
    Vote Rating
    86
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi