recordselect

4.0.4last stable release 2 weeks ago
Complexity Score
Low
Open Issues
N/A
Dependent Projects
2
Weekly Downloadsglobal
320

License

  • MIT
    • Yesattribution
    • Permissivelinking
    • Permissivedistribution
    • Permissivemodification
    • Nopatent grant
    • Yesprivate use
    • Permissivesublicensing
    • Notrademark grant

Downloads

Readme

RecordSelect

(c) 2007 - 2016 Sergio Cambra, Lance Ivy

RecordSelect is a Rails widget to help you pick one record out of many. I designed it as a more usable and performant alternative to generating a massive dropdown list. It relies on AJAX, powered by jQuery, so jQuery must be loaded first, either from jquery-rails gem or just loading the JS in the assets pipeline, or imported before importing record_select if using importmap.

Please see the ActionView::Helpers::RecordSelectHelpers for the most common API. More documentation (and HOWTOs) can be found online at the wiki.

= USAGE WITH ASSETS PIPELINE

Add to application.js

//= require jquery
//= require record_select

= USAGE WITH IMPORTMAP

Add to importmap.rb

pin "jquery"
pin "record_select"

Add to app/assets/config/manifest.js

//= link jquery.js
//= link record_select.js

Add to app/javascript/application.js

import 'jquery'
import 'record_select'

= USAGE WITH ACTIVE_SCAFFOLD

Either using assets pipeline or importmap, it will be loaded when requiring or importing active_scaffold, so no need to add it to application.js, importmap.rb or manifest.js

= DEPENDENCIES This depends on the excellent Paginator gem by Bruce Williams. This simple gem is available at paginator.rubyforge.org.

Dependencies

No runtime dependency information found for this package.

CVE IssuesActive
0
Scorecards Score
No Data
Test Coverage
No Data
Follows Semver
Yes
Github Stars
16
Dependenciestotal
2
DependenciesOutdated
1
DependenciesDeprecated
0
Threat Modelling
No Data
Repo Audits
No Data

Learn how to distribute recordselect in your own private RubyGems registry

gem install recordselect
Processing...
Done

75 Releases

RubyGems on Cloudsmith

Getting started with RubyGems on Cloudsmith is fast and easy.