Coder Social home page Coder Social logo

gnagno / quidgets2 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 116 KB

Rails plugin which provides a small set of useful input widgets that directly bind to your data tables or fields. They help eliminate the need of “submit” button, which will simplify your UI, especially for configuration pages such as admin page, etc. Quidgets use best with ActiveScaffold.

License: MIT License

Ruby 100.00%

quidgets2's People

Contributors

gnagno avatar

Stargazers

 avatar

Watchers

 avatar  avatar

quidgets2's Issues

passing a js callback to the widgets?

considering the idea about passing a js callback to the widgets, so that it will be possible to execute some action to notify the user that the data was updated, so for example this:

<%= raw checkbox( @user,"active",{:id => "active_check_#{@user.id}", :name => 'test', :class=>'hello'}) %>

will be like this:

<%= raw checkbox( @user,"active",{:id => "active_check_#{@user.id}", :name => 'test', :class=>'hello', :callback => mycallback }) %>

where mycallback is the name of the js function, that the user have to implement

behavior of textbox

ask Philip which action will trigger the saving of textbox:

  • the user press enter
  • the user leaves the widget
  • both

remove raw from the helper call

now I am rendering the helper with:
<%= raw checkbox( @user,"active",{:id => "active_check_#{@user.id}", :name => 'test', :class=>'hello'}) %>

find a way to make it render with just:
<%= checkbox( @user,"active",{:id => "active_check_#{@user.id}", :name => 'test', :class=>'hello'}) %>

so without using "raw"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.