textinput

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type View

type View struct {
	view.Embed
	PaintStyle *paint.Style
	Text       *text.Text

	Style              *text.Style
	PlaceholderText    *text.Text
	PlaceholderStyle   *text.Style
	SecureTextEntry    bool
	KeyboardType       keyboard.Type
	KeyboardAppearance keyboard.Appearance
	KeyboardReturnType keyboard.ReturnType
	Responder          *keyboard.Responder

	Multiline    bool
	OnTextChange func(*text.Text)
	OnSubmit     func()
	OnFocus      func(*keyboard.Responder)
	// contains filtered or unexported fields
}

View mutates the Text and StyledText fields in place.

func New

func New(ctx *view.Context, key string) *View

func (*View) Build

func (v *View) Build(ctx *view.Context) view.Model

func (*View) Lifecycle

func (v *View) Lifecycle(from, to view.Stage)

Jump to

Keyboard shortcuts

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