| Package | feathers.utils.touch |
| Class | public class TapToTrigger |
| Inheritance | TapToTrigger TapToEvent Object |
| Product Version : | Feathers 2.3.0 |
Event.TRIGGERED from the target when the target
is tapped. Conveniently handles all TouchEvent listeners
automatically. Useful for custom item renderers that should be triggered
when tapped.
In the following example, a custom item renderer will be triggered when tapped:
public class CustomItemRenderer extends LayoutGroupListItemRenderer
{
public function CustomItemRenderer()
{
super();
this._tapToTrigger = new TapToTrigger(this);
}
private var _tapToTrigger:TapToTrigger;
}Note: When combined with a TapToSelect instance, the
TapToTrigger instance should be created first because
Event.TRIGGERED should be dispatched before
Event.CHANGE.
See also
| Method | Defined By | ||
|---|---|---|---|
TapToTrigger(target:DisplayObject = null)
Constructor. | TapToTrigger | ||