-
29 Jul 2010 2:26 PM #1
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?
-
30 Jul 2010 12:02 AM #2
Code:myTrigger.trigger.setDisplayed(false); // or true
-
30 Jul 2010 3:50 AM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 44
The latest Ext versions have a TriggerField.setHideTrigger method.
-
2 Aug 2010 11:32 AM #4
Similar Threads
-
datefield hide when click trigger
By ajaxvador in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 15 Jul 2010, 11:05 AM -
How to show combobox's trigger in EditorGridPanel
By onur.ozgur.ozkan in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 21 May 2010, 1:11 AM -
[UNKNOWN][v3.0.3] Mouse over/out the trigger of a trigger field gives js error
By dphu in forum Ext 3.x: BugsReplies: 0Last Post: 5 Nov 2009, 12:54 PM -
Multiple trigger field should replace Trigger and TwinTrigger field
By armandoxxx in forum Community DiscussionReplies: 0Last Post: 6 Aug 2008, 12:15 AM -
Hide Combo Trigger
By alindsay55661 in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 16 Mar 2007, 5:37 PM


Reply With Quote