Documentation ¶
Index ¶
- Constants
- type Control
- type ControlValue
- type Controls
- func (f *Controls) Button(text string, name string, value string, class string) *Control
- func (f *Controls) ButtonLink(text string, valueLink string, class string) *Control
- func (f *Controls) Checkbox(label string, name string, value string, checked bool) *Control
- func (f *Controls) Checkboxes(label string, values []ControlValue) *Control
- func (f *Controls) HiddenInput(name string, value string) *Control
- func (f *Controls) Hr()
- func (f *Controls) Image(label string, name string, imageValue string, emptyValue string) *Control
- func (f *Controls) ImageGallery(label string, name string, value string) *Control
- func (f *Controls) Input(label string, name string, value string) *Control
- func (f *Controls) MarkDown(label string, name string, value string) *Control
- func (f *Controls) ResponsiveArea(label string, name string, value string) *Control
- func (f *Controls) Select(label string, name string, values []ControlValue) *Control
- func (f *Controls) Select2(label string, name string, values []ControlValue) *Control
- func (f *Controls) TabsList(callFunc func(tabsList *TabsList)) *Control
- func (f *Controls) Tags(label string, name string, value string) *Control
- func (f *Controls) Test(label string, name string, value string) *Control
- func (f *Controls) Textarea(label string, name string, value string) *Control
- type FormBuilder
- type GroupValue
- type Tab
- type TabsList
Constants ¶
View Source
const ThemeBootstrap4 = "bootstrap4"
View Source
const ThemeYelak = "yelakUI"
ThemeYelak todo new theme coming soon
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Control ¶
type Control struct { ID string ControlID int ControlType string TheType string Class string Label string Name string Placeholder string Note string Prepend string Append string Fluid bool Disabled bool Required bool Checked bool MaxLength int GroupValues []GroupValue Values []ControlValue Value string EmptyValue string Text string TabsList TabsList }
type ControlValue ¶
type Controls ¶
func (*Controls) ButtonLink ¶
func (*Controls) Checkboxes ¶
func (f *Controls) Checkboxes(label string, values []ControlValue) *Control
func (*Controls) ImageGallery ¶
func (*Controls) ResponsiveArea ¶
func (*Controls) Select ¶
func (f *Controls) Select(label string, name string, values []ControlValue) *Control
type FormBuilder ¶
type FormBuilder struct { Controls DataURL string DataMethod string UseForm bool Theme string AssetsURL string ControlID int }
func (*FormBuilder) Form ¶
func (f *FormBuilder) Form(url string, method string)
func (*FormBuilder) Render ¶
func (f *FormBuilder) Render() string
func (*FormBuilder) RenderElement ¶
func (f *FormBuilder) RenderElement(control *Control) string
type GroupValue ¶
type GroupValue struct { Name string Values []ControlValue }
Click to show internal directories.
Click to hide internal directories.