augnustin / phoenix_ujs

Phoenix Unobtrusive Javascript, inspired from rails_ujs, connected with phoenix backend, but still independant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phoenix_ujs

Phoenix Unobtrusive Javascript, inspired from rails_ujs, connected with phoenix backend, but still independant.

Motivations

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.

Features

Already built-in:

  • POST, PUT and DELETE requests on buttons
  • data-confirm attribute

Written:

  • data-disable-with

TODO:

  • <form data-remote="true">: best rails_ujs feature IMHO

Other repos

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

About

Phoenix Unobtrusive Javascript, inspired from rails_ujs, connected with phoenix backend, but still independant

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%