Documentation ¶
Index ¶
Constants ¶
const API = autoinit.MDCDialog
API is the auto init data value for this component.
const ActionTag = "action"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialog ¶
type Dialog struct { app.Compo base.JsUtil autoinit.AutoInit Id string Title []app.UI Content []app.UI Buttons []app.UI // contains filtered or unexported fields }
func (*Dialog) ActionClose ¶ added in v0.2.8
ActionClose sends the Close event to the dialog component with the provided action.
func (*Dialog) ActionOpen ¶ added in v0.2.8
ActionOpen sends the Open event to the dialog component.
type EventType ¶ added in v0.2.8
type EventType string
EventType defines the event strings that are sent to and from the dialog control.
const Close EventType = "MDCDialog:close"
Close is the event sent using ActionClose to call the dialog's api.close() method
const Closed EventType = "MDCDialog:closed"
Closed indicates when the dialog finishes its closing animation.
const Closing EventType = "MDCDialog:closing"
Closing indicates when the dialog begins its closing animation.
const Open EventType = "MDCDialog:open"
Open is the event sent using ActionOpen to call the dialog's api.open() method.
const Opened EventType = "MDCDialog:opened"
Opened indicates when the dialog finishes its opening animation.
const Opening EventType = "MDCDialog:opening"
Opening indicates when the dialog begins its opening animation.