Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegistryObject = NewComponentRegistry() Register = RegistryObject.Register Namespace = RegistryObject.Namespace Render = RegistryObject.Render )
Functions ¶
This section is empty.
Types ¶
type AttributeSetter ¶ added in v1.7.2
type ComponentFunc ¶
type ComponentFunc = django_reflect.Function
type ComponentRegistry ¶
type ComponentRegistry struct {
// contains filtered or unexported fields
}
func NewComponentRegistry ¶
func NewComponentRegistry() *ComponentRegistry
func (*ComponentRegistry) Namespace ¶
func (r *ComponentRegistry) Namespace(name string) Registry
func (*ComponentRegistry) Register ¶
func (r *ComponentRegistry) Register(name string, componentFn ComponentFunc)
func (*ComponentRegistry) Render ¶
func (r *ComponentRegistry) Render(name string, args ...interface{}) Component
type FuncComponent ¶ added in v1.7.2
Click to show internal directories.
Click to hide internal directories.