Phoenix Unobtrusive Javascript, inspired from rails_ujs, connected with phoenix backend, but still independant.
rails_ujs is a very powerful tool for full-stack devs to make sure front-end and back-end talk together easily.
Some of their features are implemented in Elixir Phoenix Framework JS plugin but as stated by one of their creator Jose Valim, it should eventually has been left independent.
Hence the point of this repo is to rewrite rails_ujs adapted to phoenix.
Already built-in:
POST
,PUT
andDELETE
requests on buttonsdata-confirm
attribute
Written:
data-disable-with
TODO:
<form data-remote="true">
: best rails_ujs feature IMHO
There is this repo which aims at doing the same but:
- it lacks of severa key features
- it is backend agnostic, which is not very logical when writing phoenix_ujs
- written in vanilla JS, which is good but one should consider having a jQuery version too