ax

package
v2.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(attr, expr string) h.Ren

func BindChecked

func BindChecked(expr string) h.Ren

func BindClass

func BindClass(expr string) h.Ren

func BindDisabled

func BindDisabled(expr string) h.Ren

func BindHref

func BindHref(expr string) h.Ren

func BindId

func BindId(expr string) h.Ren

func BindStyle

func BindStyle(expr string) h.Ren

func BindValue

func BindValue(expr string) h.Ren

func Cloak

func Cloak() h.Ren

func Data

func Data(expr string) h.Ren

func Effect

func Effect(expr string) h.Ren

func For

func For(expr string) h.Ren

func Html

func Html(expr string) h.Ren

func Id

func Id(scopes string) h.Ren

func If

func If(expr string) h.Ren

func Ignore

func Ignore() h.Ren

func Init

func Init(expr string) h.Ren

func Model

func Model(expr string) h.Ren

func ModelBoolean

func ModelBoolean(expr string) h.Ren

func ModelDebounce

func ModelDebounce(expr, duration string) h.Ren

func ModelFill

func ModelFill(expr string) h.Ren

func ModelLazy

func ModelLazy(expr string) h.Ren

func ModelNumber

func ModelNumber(expr string) h.Ren

func ModelTrim

func ModelTrim(expr string) h.Ren

func Modelable

func Modelable(expr string) h.Ren

func On

func On(event, handler string, modifiers ...string) h.Ren

func OnBlur

func OnBlur(handler string, mods ...string) h.Ren

func OnChange

func OnChange(handler string, mods ...string) h.Ren

func OnClick

func OnClick(handler string, mods ...string) h.Ren

func OnClickOutside

func OnClickOutside(handler string) h.Ren

func OnFocus

func OnFocus(handler string, mods ...string) h.Ren

func OnInput

func OnInput(handler string, mods ...string) h.Ren

func OnKeydown

func OnKeydown(handler string, mods ...string) h.Ren

func OnKeydownEnter

func OnKeydownEnter(handler string) h.Ren

func OnKeydownEscape

func OnKeydownEscape(handler string) h.Ren

func OnKeyup

func OnKeyup(handler string, mods ...string) h.Ren

func OnSubmit

func OnSubmit(handler string, mods ...string) h.Ren

func Ref

func Ref(name string) h.Ren

func Show

func Show(expr string) h.Ren

func Teleport

func Teleport(selector string) h.Ren

func Text

func Text(expr string) h.Ren

func Transition

func Transition() h.Ren

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL