loriowar / auto_select2 Goto Github PK
View Code? Open in Web Editor NEWBase methods for wrapping Select2
License: MIT License
Base methods for wrapping Select2
License: MIT License
Fix warnings from gem build
action:
WARNING: open-ended dependency on railties (>= 3.1) is not recommended
if railties is semantically versioned, use:
add_runtime_dependency 'railties', '~> 3.1'
WARNING: open-ended dependency on select2-rails (>= 0) is not recommended
if select2-rails is semantically versioned, use:
add_runtime_dependency 'select2-rails', '~> 0'
WARNING: open-ended dependency on coffee-rails (>= 0) is not recommended
if coffee-rails is semantically versioned, use:
add_runtime_dependency 'coffee-rails', '~> 0'
WARNING: open-ended dependency on rake (>= 0, development) is not recommended
if rake is semantically versioned, use:
add_development_dependency 'rake', '~> 0'
WARNING: pessimistic dependency on rails (~> 3.2.12, development) may be overly strict
if rails is semantically versioned, use:
add_development_dependency 'rails', '~> 3.2', '>= 3.2.12'
WARNING: See http://guides.rubygems.org/specification-reference/ for help
I read about your gem at habrahabr.ru and thank you for your work. In one of the examples you've shown gem usage to build dependent selection (country, city example). What if I want to create city that is not present in given selection? Normally I would add new item using createSearchChoice function, is this feature supported in your gem yet?
Please fix "gem 'auto-select2'" to "gem 'auto_select2'" in Second section README.md
Library does not filter html markup when used with default formatters for formatResult and formatSelection.
When we use options for some filtration purposes we have to transfer them through all self-methods.
Instead of this we can use something like this in adapters:
class MySearchAdapter
def initialize(options)
@options = options
end
def search(term, page)
# some logic with @options
end
private
# ...
end
You shoud get custom user options via $input.data("s2-options")
default_class_name option allow users to search any object of any ActiveRecord classes
Commit with fix
bkocherov@c283ba5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.