Package | feathers.controls.popups |
Class | public class CalloutPopUpContentManager |
Inheritance | CalloutPopUpContentManager ![]() |
Implements | IPopUpContentManager |
See also
Property | Defined By | ||
---|---|---|---|
calloutFactory : Function
The factory used to create the Callout instance. | CalloutPopUpContentManager | ||
direction : String
The direction of the callout. | CalloutPopUpContentManager | ||
isModal : Boolean = true
Determines if the callout will be modal or not. | CalloutPopUpContentManager | ||
isOpen : Boolean [read-only]
Indicates if the pop-up content is open or not. | CalloutPopUpContentManager |
Method | Defined By | ||
---|---|---|---|
Constructor. | CalloutPopUpContentManager | ||
close():void
Closes the pop-up content. | CalloutPopUpContentManager | ||
dispose():void
Cleans up the manager. | CalloutPopUpContentManager | ||
open(content:DisplayObject, source:DisplayObject):void
Displays the pop-up content. | CalloutPopUpContentManager |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the pop-up content closes. | CalloutPopUpContentManager | |||
Dispatched when the pop-up content opens. | CalloutPopUpContentManager |
calloutFactory | property |
public var calloutFactory:Function
The factory used to create the Callout
instance. If
null
, Callout.calloutFactory()
will be used.
Note: If you change this value while a callout is open, the new value will not go into effect until the callout is closed and a new callout is opened.
The default value is null
.
See also
direction | property |
public var direction:String
The direction of the callout.
Note: If you change this value while a callout is open, the new value will not go into effect until the callout is closed and a new callout is opened.
In the following example, the callout direction is restricted to down:
manager.direction = Callout.DIRECTION_DOWN;
The default value is Callout.DIRECTION_ANY
.
See also
isModal | property |
public var isModal:Boolean = true
Determines if the callout will be modal or not.
Note: If you change this value while a callout is open, the new value will not go into effect until the callout is closed and a new callout is opened.
In the following example, the callout is not modal:
manager.isModal = false;
The default value is true
.
isOpen | property |
isOpen:Boolean
[read-only] Indicates if the pop-up content is open or not.
public function get isOpen():Boolean
CalloutPopUpContentManager | () | Constructor |
public function CalloutPopUpContentManager()
Constructor.
close | () | method |
public function close():void
Closes the pop-up content. If it is not opened, nothing happens.
dispose | () | method |
public function dispose():void
Cleans up the manager.
open | () | method |
public function open(content:DisplayObject, source:DisplayObject):void
Displays the pop-up content.
Parameters
content:DisplayObject — The content for the pop-up content manager to display.
| |
source:DisplayObject — The source of the pop-up. May be used to position and/or size the pop-up. May be completely ignored instead.
|
close | Event |
starling.events.Event
starling.events.Event.CLOSE
Dispatched when the pop-up content closes.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
data | null |
target | The Object that dispatched the event;
it is not always the Object listening for the event. Use the
currentTarget property to always access the Object
listening for the event. |
open | Event |
starling.events.Event
starling.events.Event.OPEN
Dispatched when the pop-up content opens.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
data | null |
target | The Object that dispatched the event;
it is not always the Object listening for the event. Use the
currentTarget property to always access the Object
listening for the event. |