Very simple and lightweight AJAX implementation for Nette
npm install axette!npm
!GitHub Repo stars
!Dependents (via libraries.io)

!Libraries.io SourceRank
!npm
!NPM
!npm TypeScript version
!GitHub Sponsors


https://www.npmjs.com/package/axette
Very simple and lightweight AJAX implementation for Nette. Axette = AJAX for Nette!
- Table of Contents
- Features
- Installation
- With package manager (recommended)
- NPM:
- PNPM:
- Yarn:
- Bun:
- With a tag:
- Migration from 1.x to 2.x
- Breaking changes
- Usage
- Custom CSS selector
- Custom event listeners
- Events
- beforeInit
- afterInit
- beforeAjax
- afterAjax
- Sending requests manually
- Remove ?_fid=XXXX from URLs
- Credits
- License
- Lightweight (1kb gzipped, 3kb minified)
- Blazingly Fast
- No dependencies (no jQuery!)
- Simple to use
- Just import it, call const axette = new Axette() and you're done!
- Supports links and forms ( and tags) to be handled by AJAX
- Handles snippet updates ($this->redrawControl()) as well as redirects ($this->redirect())
- Automatically executes JavaScript inside tags in the snippets returned from AJAX requests
- Get rid of ?_fid=6ge7 in the URL when using Flash Messages
- Attach custom callbacks to various events (beforeInit, afterInit, beforeAjax, etc...)
#### NPM:
```
npm install axette
#### PNPM:
``
pnpm install axette
#### Yarn:
``
yarn add axette
#### Bun:
`sh`
bun add axetteor
bun install axette
Download the latest release, move axette.iife.js from the dist/ folder somewhere to your project and include it in your HTML or Latte file via a
OR