kit

package
v0.0.0-...-3fb46c6 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

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

func NewButton

func NewButton() *Button

func (*Button) FillWidth

func (b *Button) FillWidth(v bool) *Button

func (*Button) Label

func (b *Button) Label(v interface{}) *Button

func (*Button) OnClick

func (b *Button) OnClick(f func()) *Button

func (*Button) Render

func (b *Button) Render() *dom.Element

func (*Button) Size

func (b *Button) Size(size ButtonSize) *Button

func (*Button) Style

func (b *Button) Style(style ButtonStyle) *Button

type ButtonSize

type ButtonSize string
const (
	ButtonSmall  ButtonSize = "uk-button-small"
	ButtonMedium ButtonSize = ""
	ButtonLarge  ButtonSize = "uk-button-large"
)

type ButtonStyle

type ButtonStyle string
const (
	ButtonDefault   ButtonStyle = "uk-button-default"
	ButtonPrimary   ButtonStyle = "uk-button-primary"
	ButtonSecondary ButtonStyle = "uk-button-secondary"
	ButtonDanger    ButtonStyle = "uk-button-danger"
	ButtonText      ButtonStyle = "uk-button-text"
	ButtonLink      ButtonStyle = "uk-button-link"
)

type Form

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

func NewForm

func NewForm() *Form

func (*Form) AddTextbox

func (f *Form) AddTextbox(label string, t *Textbox) *Form

func (*Form) Render

func (f *Form) Render() *dom.Element

type HTML

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

func NewHTML

func NewHTML() *HTML

func (*HTML) Render

func (html *HTML) Render() *dom.Element

func (*HTML) Set

func (html *HTML) Set(content string) *HTML

type Icon

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

func NewIcon

func NewIcon() *Icon

func (*Icon) OnClick

func (i *Icon) OnClick(f func()) *Icon

func (*Icon) Render

func (i *Icon) Render() *dom.Element

func (*Icon) Type

func (i *Icon) Type(t IconType) *Icon

type IconType

type IconType string
const (
	IconNone IconType = ""
	IconUser IconType = "user"
	IconLock IconType = "lock"
)

type Table

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

func NewTable

func NewTable() *Table

func (*Table) Append

func (t *Table) Append(v ...interface{}) *Table

func (*Table) Caption

func (t *Table) Caption(v interface{}) *Table

func (*Table) Header

func (t *Table) Header(fields ...interface{}) *Table

func (*Table) Render

func (t *Table) Render() *dom.Element

func (*Table) Style

func (t *Table) Style(style TableStyle) *Table

func (*Table) Width

func (t *Table) Width(widths ...string) *Table

type TableStyle

type TableStyle string
var (
	TableStylePlain   TableStyle = ""
	TableStyleDivider TableStyle = "uk-table-divider"
	TableStyleStriped TableStyle = "uk-table-striped"
)

type Textarea

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

func NewTextArea

func NewTextArea() *Textarea

func (*Textarea) Hidden

func (t *Textarea) Hidden(v bool) *Textarea

func (*Textarea) OnInput

func (t *Textarea) OnInput(f func()) *Textarea

func (*Textarea) Render

func (t *Textarea) Render() *dom.Element

func (*Textarea) Resize

func (t *Textarea) Resize(v TextareaResize) *Textarea

func (*Textarea) State

func (t *Textarea) State(state TextareaState) *Textarea

func (*Textarea) String

func (t *Textarea) String() string

type TextareaResize

type TextareaResize string
const (
	TextAreaResizeVertical   TextareaResize = "vertical"
	TextAreaResizeHorizontal TextareaResize = "horizontal"
	TextAreaResizeBoth       TextareaResize = "both"
	TextAreaResizeNone       TextareaResize = "none"
)

type TextareaState

type TextareaState string
const (
	TextareaRegular  TextareaState = ""
	TextareaDanger   TextareaState = "uk-form-danger"
	TextareaSuccess  TextareaState = "uk-form-success"
	TextareaDisabled TextareaState = "disabled"
)

type Textbox

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

func NewTextBox

func NewTextBox() *Textbox

func (*Textbox) Hidden

func (t *Textbox) Hidden(v bool) *Textbox

func (*Textbox) Icon

func (t *Textbox) Icon(icon IconType) *Textbox

func (*Textbox) Render

func (t *Textbox) Render() *dom.Element

func (*Textbox) State

func (t *Textbox) State(state TextboxState) *Textbox

type TextboxState

type TextboxState string
const (
	TextboxRegular  TextboxState = ""
	TextboxDanger   TextboxState = "uk-form-danger"
	TextboxSuccess  TextboxState = "uk-form-success"
	TextboxDisabled TextboxState = "disabled"
)

Jump to

Keyboard shortcuts

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