Documentation ¶
Overview ¶
mae.earth/pkg/card/html/html.go * mae 012018
Index ¶
- Variables
- func GenerateForm(v *card.Card, options *FormOptions) (template.HTML, error)
- func ParseAsRadio(form *FormAttribute, com *card.Compound, options *FormOptions) (string, error)
- func ParseAsSelect(form *FormAttribute, com *card.Compound, options *FormOptions) (string, error)
- type FormAttribute
- type FormButton
- type FormDisabled
- type FormOptions
- type FormUser
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GenerateForm ¶
GenerateForm
func ParseAsRadio ¶
func ParseAsRadio(form *FormAttribute, com *card.Compound, options *FormOptions) (string, error)
func ParseAsSelect ¶
func ParseAsSelect(form *FormAttribute, com *card.Compound, options *FormOptions) (string, error)
Types ¶
type FormAttribute ¶
func ParseFormElement ¶
func ParseFormElement(str string) (*FormAttribute, error)
type FormButton ¶
type FormDisabled ¶
func (FormDisabled) Is ¶
func (fd FormDisabled) Is(name string) string
type FormOptions ¶
type FormOptions struct { Method string Action string User FormUser Disabled FormDisabled Buttons []FormButton }
Click to show internal directories.
Click to hide internal directories.