Documentation
¶
Index ¶
Constants ¶
View Source
const ( PartBackdrop = widget.Part("backdrop") PartPanel = widget.Part("panel") PartHeader = widget.Part("header") PartBody = widget.Part("body") PartActions = widget.Part("actions") PartClose = widget.Part("close") )
View Source
const NameModalDialog = widget.Name("modaldialog")
NameModalDialog is the widget name for modal dialog.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModalDialog ¶
type ModalDialog struct {
Element
Title string
Content Component
// contains filtered or unexported fields
}
ModalDialog represents a modal dialog component.
func (*ModalDialog) Close ¶ added in v0.1.10
func (m *ModalDialog) Close()
Close hides the dialog programmatically.
func (*ModalDialog) Init ¶
func (m *ModalDialog) Init(_ Ctx)
func (*ModalDialog) Open ¶
func (m *ModalDialog) Open()
func (*ModalDialog) Render ¶
func (m *ModalDialog) Render() *Element
func (*ModalDialog) Style ¶ added in v0.1.13
func (m *ModalDialog) Style() *style.Sheet
Style defines the modaldialog visual contract using the style DSL.
func (*ModalDialog) WidgetKind ¶ added in v0.1.13
func (m *ModalDialog) WidgetKind() widget.Kind
func (*ModalDialog) WidgetName ¶ added in v0.1.13
func (m *ModalDialog) WidgetName() widget.Name
Click to show internal directories.
Click to hide internal directories.