dialog

package
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

API is the auto init data value for this component.

View Source
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

func (d *Dialog) ActionClose(ctx app.Context, action string)

ActionClose sends the Close event to the dialog component with the provided action.

func (*Dialog) ActionOpen added in v0.2.8

func (d *Dialog) ActionOpen(ctx app.Context)

ActionOpen sends the Open event to the dialog component.

func (*Dialog) OnMount

func (d *Dialog) OnMount(ctx app.Context)

func (*Dialog) Open

func (d *Dialog) Open()

Open opens this dialog Deprecated: Use ActionOpen or context.NewActionWithValue using the id of the dialog

func (*Dialog) Render

func (d *Dialog) Render() app.UI

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL