modal

package
v0.0.0-...-32f009b Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device interface {
	RenderModal(uiID, layout string, dAppPubKey ed25519.PublicKey) error
}

type Module

type Module struct {
	// contains filtered or unexported fields
}

func New

func New(l *logger.Logger, device Device, dAppIDKey ed25519.PublicKey) *Module

create new Modal Module

func (*Module) Close

func (m *Module) Close() error

func (*Module) CloseModal

func (m *Module) CloseModal(uiID string)

close the modal

func (*Module) Register

func (m *Module) Register(vm *otto.Otto) error

renderModal provides a way to display a modal the first parameter should be the modal title the second parameter should be the layout to render and the third parameter is an optional callback that will called with an optional error

Jump to

Keyboard shortcuts

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