Class DialogTrigger
DialogTrigger serves as a wrapper around a Dialog and its associated trigger, linking the Dialog's open state with the trigger's press state. Additionally, it allows you to customize the type and positioning of the Dialog.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class DialogTrigger : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Constructors
Name | Description |
---|---|
DialogTrigger() | Default constructor. |
Properties
Name | Description |
---|---|
anchor | The UI element used as an anchor.
|
containerPadding | The padding in pixels of the content inside the Popup. |
contentContainer | The content container of the DialogTrigger. |
crossOffset | The offset in pixels in the direction of the placement secondary vector. |
dialog | The dialog to display. |
hideArrow | Should the arrow be hidden.
|
isOpen | The open state of the dialog. |
keyboardDismissDisabled | Disallow the use of Escape key or Return button to dismiss the dialog. |
mobileType | The type of presentation used for this dialog element on mobile platforms. |
modalBackdrop | Enable or disable the blocking of the UI behind the dialog. |
offset | The offset in pixels in the direction of the placement primary vector. |
outsideClickDismissEnabled | Allow the use of clicking outside the dialog to dismiss it. |
placement | The placement of the Popover.
|
shouldFlip | Should the Popover placement be flipped if there's not enough space. |
transitionDuration | The duration of the transition in milliseconds. |
trayExpandable | Make the Tray element expandable. |
trayMargin | The margin in pixels of the Tray element. |
trayPosition | The position of the Tray element.
|
traySize | The size of the Tray element. |
trigger | The trigger that will be used to start the display of the dialog element. |
type | The type of presentation used for this dialog element.
|