Documentation
¶
Overview ¶
Package ax provides Go helpers for Alpine.js directives, mirroring the shape of framework/hx (htmx helpers). All constants are Alpine 3 attribute names; the Ren-returning builders live in builder.go.
Index ¶
- func Bind(attr, expr string) h.Ren
- func BindChecked(expr string) h.Ren
- func BindClass(expr string) h.Ren
- func BindDisabled(expr string) h.Ren
- func BindHref(expr string) h.Ren
- func BindId(expr string) h.Ren
- func BindStyle(expr string) h.Ren
- func BindValue(expr string) h.Ren
- func Cloak() h.Ren
- func Data(expr string) h.Ren
- func Effect(expr string) h.Ren
- func For(expr string) h.Ren
- func Html(expr string) h.Ren
- func Id(scopes string) h.Ren
- func If(expr string) h.Ren
- func Ignore() h.Ren
- func Init(expr string) h.Ren
- func Model(expr string) h.Ren
- func ModelBoolean(expr string) h.Ren
- func ModelDebounce(expr, duration string) h.Ren
- func ModelFill(expr string) h.Ren
- func ModelLazy(expr string) h.Ren
- func ModelNumber(expr string) h.Ren
- func ModelTrim(expr string) h.Ren
- func Modelable(expr string) h.Ren
- func On(event, handler string, modifiers ...string) h.Ren
- func OnBlur(handler string, mods ...string) h.Ren
- func OnChange(handler string, mods ...string) h.Ren
- func OnClick(handler string, mods ...string) h.Ren
- func OnClickOutside(handler string) h.Ren
- func OnFocus(handler string, mods ...string) h.Ren
- func OnInput(handler string, mods ...string) h.Ren
- func OnKeydown(handler string, mods ...string) h.Ren
- func OnKeydownEnter(handler string) h.Ren
- func OnKeydownEscape(handler string) h.Ren
- func OnKeyup(handler string, mods ...string) h.Ren
- func OnSubmit(handler string, mods ...string) h.Ren
- func Ref(name string) h.Ren
- func Show(expr string) h.Ren
- func Teleport(selector string) h.Ren
- func Text(expr string) h.Ren
- func Transition() h.Ren
- type Attribute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindChecked ¶
func BindDisabled ¶
func ModelBoolean ¶
func ModelDebounce ¶
func ModelNumber ¶
func OnClickOutside ¶
func OnKeydownEnter ¶
func OnKeydownEscape ¶
func Transition ¶
Types ¶
type Attribute ¶
type Attribute = string
const ( DataAttr Attribute = "x-data" InitAttr Attribute = "x-init" ShowAttr Attribute = "x-show" BindAttr Attribute = "x-bind" OnAttr Attribute = "x-on" TextAttr Attribute = "x-text" HtmlAttr Attribute = "x-html" ModelAttr Attribute = "x-model" ModelableAttr Attribute = "x-modelable" CloakAttr Attribute = "x-cloak" RefAttr Attribute = "x-ref" IgnoreAttr Attribute = "x-ignore" TeleportAttr Attribute = "x-teleport" EffectAttr Attribute = "x-effect" IfAttr Attribute = "x-if" ForAttr Attribute = "x-for" IdAttr Attribute = "x-id" TransitionAttr Attribute = "x-transition" )
Click to show internal directories.
Click to hide internal directories.