modal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package modal wraps Bootstrap Modal component.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Modal struct {
	*bs.Component
}

Modal represents Bootstrap Modal component.

func Attach

func Attach(id string) *Modal

Attach binds a Bootstrap modal component on page.

func (Modal) Dispose

func (m Modal) Dispose()

Dispose ...

func (*Modal) Hidden

func (m *Modal) Hidden(fn func(*Modal, *js.Event)) *Modal

Hidden ...

func (*Modal) Hidding

func (m *Modal) Hidding(fn func(*Modal, *js.Event)) *Modal

Hidding ...

func (Modal) Hide

func (m Modal) Hide()

Hide ...

func (Modal) SetHTML

func (m Modal) SetHTML(html string) Modal

SetHTML ....

func (Modal) SetText

func (m Modal) SetText(content string) Modal

SetText ...

func (*Modal) SetTitle

func (m *Modal) SetTitle(title string) *Modal

SetTitle ...

func (Modal) Show

func (m Modal) Show()

Show ...

func (*Modal) Showing

func (m *Modal) Showing(fn func(*Modal, *js.Event)) *Modal

Showing ...

func (*Modal) Shown

func (m *Modal) Shown(fn func(*Modal, *js.Event)) *Modal

Shown ...

Jump to

Keyboard shortcuts

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