Documentation ¶
Overview ¶
This package contains the base logic for the creation and rendering of field widgets. Base widgets are defined for most input fields, both in classic and Bootstrap3 style; custom widgets can be defined and associated to a field, provided that they implement the WidgetInterface interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Widget ¶
type Widget struct {
// contains filtered or unexported fields
}
Simple widget object that gets executed at render time.
func BaseWidget ¶
BaseWidget creates a Widget based on style and inpuType parameters, both defined in the common package.
type WidgetInterface ¶
type WidgetInterface interface {
Render(data interface{}) string
}
WidgetInterface defines the requirements for custom widgets.
Click to show internal directories.
Click to hide internal directories.