bootstrap

package
v2.1.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Form

type Form struct {
	*form.Form
}

Form is the bootstrap version of Form

func New

func New(opts tags.Options) *Form

New creates a bootstrap Form from passed options

func (Form) CheckboxTag

func (f Form) CheckboxTag(opts tags.Options) *tags.Tag

CheckboxTag builds a bootstrap checkbox with passed options

func (Form) FileTag

func (f Form) FileTag(opts tags.Options) *tags.Tag

FileTag builds a bootstrap input[type=file] with passed options

func (Form) HiddenTag

func (f Form) HiddenTag(opts tags.Options) *tags.Tag

HiddenTag adds a hidden input to the form

func (Form) InputTag

func (f Form) InputTag(opts tags.Options) *tags.Tag

InputTag builds a bootstrap input[type=text] with passed options

func (Form) RadioButton

func (f Form) RadioButton(opts tags.Options) *tags.Tag

RadioButton builds a bootstrap input[type=radio] with passed options

func (Form) RadioButtonTag

func (f Form) RadioButtonTag(opts tags.Options) *tags.Tag

RadioButtonTag builds a bootstrap input[type=radio] with passed options

func (Form) SelectTag

func (f Form) SelectTag(opts tags.Options) *tags.Tag

SelectTag builds a bootstrap select with passed options

func (Form) TextArea

func (f Form) TextArea(opts tags.Options) *tags.Tag

TextArea builds a bootstrap textarea with passed options

func (Form) TextAreaTag

func (f Form) TextAreaTag(opts tags.Options) *tags.Tag

TextAreaTag builds a bootstrap textarea with passed options

type FormFor

type FormFor struct {
	*form.FormFor
}

FormFor is the FormFor version for bootstrap

func NewFormFor

func NewFormFor(model interface{}, opts tags.Options) *FormFor

NewFormFor builds a form for a passed model

func (FormFor) CheckboxTag

func (f FormFor) CheckboxTag(field string, opts tags.Options) *tags.Tag

CheckboxTag adds a checkbox to a form wrapped with a form-control and a label

func (FormFor) FileTag

func (f FormFor) FileTag(field string, opts tags.Options) *tags.Tag

FileTag adds a bootstrap input[type=file] wrapped with a form-control and a label

func (FormFor) HiddenTag

func (f FormFor) HiddenTag(field string, opts tags.Options) *tags.Tag

HiddenTag adds an input[type=hidden] to the formFor

func (FormFor) InputTag

func (f FormFor) InputTag(field string, opts tags.Options) *tags.Tag

InputTag builds an input[type=text] by default wrapped with a form-control and a label

func (FormFor) RadioButton

func (f FormFor) RadioButton(field string, opts tags.Options) *tags.Tag

RadioButton adds a bootstrap input[type=radio] wrapped with a form-control and a label

func (FormFor) RadioButtonTag

func (f FormFor) RadioButtonTag(field string, opts tags.Options) *tags.Tag

RadioButtonTag adds a bootstrap input[type=radio] wrapped with a form-control and a label

func (FormFor) SelectTag

func (f FormFor) SelectTag(field string, opts tags.Options) *tags.Tag

SelectTag adds a bootstrap select tag wrapped with a form-control and a label

func (FormFor) SubmitTag

func (f FormFor) SubmitTag(value string, opts tags.Options) *tags.Tag

SubmitTag returns a tag for input type submit without wrapping

func (FormFor) TextArea

func (f FormFor) TextArea(field string, opts tags.Options) *tags.Tag

TextArea adds a bootstrap textarea tag wrapped with a form-control and a label

func (FormFor) TextAreaTag

func (f FormFor) TextAreaTag(field string, opts tags.Options) *tags.Tag

TextAreaTag adds a bootstrap textarea tag wrapped with a form-control and a label

Jump to

Keyboard shortcuts

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