Roo.util.Observable
Roo.Component
Roo.BoxComponent
Roo.form.Field
Roo.form.TextField
Roo.form.TriggerField 

		   

Class Roo.form.TriggerField

Package:Roo.form
Defined In: Roo/form/TriggerField.js.
Class:TriggerField
Subclasses: Roo.form.ComboBox, Roo.form.ComboCheck, Roo.form.DateField, Roo.form.MonthField, Roo.form.Select
Extends: Roo.form.TextField
Provides a convenient wrapper for TextFields that adds a clickable trigger button (looks like a combobox by default).
The trigger has no default action, so you must assign a function to implement the trigger click handler by
overriding {link onTriggerClick}. You can create a TriggerField directly, as it renders exactly like a combobox
for which you can provide a custom implementation. For example:

var trigger = new Roo.form.TriggerField();
trigger.onTriggerClick = myTriggerFn;
trigger.applyTo('my-field');


However, in general you will most likely want to use TriggerField as the base class for a reusable component.
{link Roo.form.DateField} and {link Roo.form.ComboBox} are perfect examples of this.
Class Comments / Notes => [Add Your comment/notes about this class]
Config Options (Usually are also Properties)
Options Defined By
Public Properties - Has None
Public Methods
Method Defined By
Events
Event Defined By
Documentation generated by Introspection Doc Generator on Fri Jul 13 2018 14:10:54 GMT+0800 (HKT) Based on JsDoc Toolkit