tags: github.com/gobuffalo/tags/form/bootstrap Index | Files

package bootstrap

import "github.com/gobuffalo/tags/form/bootstrap"

Index

Package Files

common.go form.go form_for.go

type Form Uses

type Form struct {
    *form.Form
}

Form is the bootstrap version of Form

func New Uses

func New(opts tags.Options) *Form

New creates a bootstrap Form from passed options

func (Form) CheckboxTag Uses

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

CheckboxTag builds a bootstrap checkbox with passed options

func (Form) FileTag Uses

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

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

func (Form) HiddenTag Uses

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

HiddenTag adds a hidden input to the form

func (Form) InputTag Uses

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

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

func (Form) RadioButton Uses

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

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

func (Form) RadioButtonTag Uses

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

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

func (Form) SelectTag Uses

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

SelectTag builds a bootstrap select with passed options

func (Form) TextArea Uses

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

TextArea builds a bootstrap textarea with passed options

func (Form) TextAreaTag Uses

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

TextAreaTag builds a bootstrap textarea with passed options

type FormFor Uses

type FormFor struct {
    *form.FormFor
}

FormFor is the FormFor version for bootstrap

func NewFormFor Uses

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

NewFormFor builds a form for a passed model

func (FormFor) CheckboxTag Uses

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 Uses

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 Uses

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

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

func (FormFor) InputTag Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

SubmitTag returns a tag for input type submit without wrapping

func (FormFor) TextArea Uses

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 Uses

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

Package bootstrap imports 6 packages (graph) and is imported by 2 packages. Updated 2019-11-20. Refresh now. Tools for package owners.