nate-strauser / meteor-select2 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from vslinko/meteor-select2
Select2 bindings to meteor
License: MIT License
This project forked from vslinko/meteor-select2
Select2 bindings to meteor
License: MIT License
Getting this error in the console when dismissing/closing a modal that has select2 in an AutoForm.
The select2('destroy') method was called on an element that is not using Select2.
Seems odd, since there is clearly a select2 in the modal/autoform.
Has anyone managed to load a language file ?
I tried to add the language file in my client/lib directory but it doesn't work...
I removed path-override.css from packages.js in a local copy of this package to get images to load correctly with the new package system
I try use event click
of any btn
, then change selected value of select2 object.
but don't work.
$('[name="address"]').select2({
val: 'PP'
});
pl help me.
Hi @nate-strauser ,
When you see the network tab on meteor app under dev mode, you see this package loaded two times. do you know why ?
will be removing diacractic support
Could you add "select2-bootstrap-theme CSS" in this package?
Hi, We are trying to use select2 with reactivity. however, although we are using publish and subscribe, the reactivity is not working. but the way the select2 is loading well but it is not being reactive. On the other hand if we use a normal select, the reactivity working well. Any ideas?
Events.js
Template.name_template.onCreated(function(){
Meteor.subscribe('name_Publish');
});
Template.name_template.onRendered(function(){
$("select.js-Select2Test").select2();
});
Helpers.js
import {collection_name} from '/Path';
Template.name_template.helpers({
testHelpers: function(){
return collection_name.find();
},
});
Template.html
{{#each testHelpers}} {{this._id}} - {{this.description}} {{/each}}Would enable easier updates (Select2 is a 3.4.6 now), and would point to the original source files.
Has anyone had any luck using this package with Meteor 1.3?
I just updated my application, and the select2s (generated by autoforms within yogiben:meteor-admin) are just rendering as normal HTML selection lists. I haven't isolated the problem yet but of course this package must be part of the issue.
Could you tell me what's the license model of your package? Thanks in advance.
I'm getting this message with this package, is this true?
I'm utilizing the following select in the recipe
template (data is dummy data for testing):
<select name="ingredient" class="select2-dropdown">
<option value="1">Canada</option>
<option value="2">USA</option>
<option value="3">Mexico</option>
</select>
I am using the following code to attempt to initialize the select:
Template.recipe.onRendered(function() {
// Enable select2
$('.select2-dropdown').select2();
});
The package natestrauser:select2
is in my packages file and installed successfully as far as I could tell. I'm combed through the web console and I'm not seeing any jquery errors when select2()
is called.
I want to load remote data with iron-router.
Could you help me?
Hi,
Select2 has released a 4.0.0-rc.1. FYI I created a fork which uses this release. Are we waiting for a full release, or can it be upgraded now?
Thanks,
Abhishek
I got a problem that select2 field doesn't re-size correctly when i re-size my form. Seem that ver 4.0.2 fixed that problem?
Support with Meteor 1.2
Hi, "allowClear" option is not working in my underconstruction new meteor 1.3 app. The rest of options I am using such as "multiple" works as expected. Also the "search" box works in others selects I have in my form.
Here is my code:
Template.startJob.onRendered(function(){
$(document).ready(function() {
$(".select2").select2({
allowClear: true
});
});
});
Thanks!!
I got this error . Uncaught TypeError: $(...).select2 is not a function.
My Package List Order :
meteor-platform
insecure
iron:router
useraccounts:materialize
accounts-password
froala:editor-reactive
rubaxa:sortable
miro:preloader
msavin:mongol
materialize:materialize@=0.97.0
jquery
natestrauser:select2
As described here: https://select2.github.io/examples.html#matcher
Requires full version of Select2.
According to the README
, the package is named nate-strauser:select2
. This package doesn't exist. In package.json
, it's named natestrauser:select2
(no hyphen), which does exist in the catalog.
I am looking for an example for feeding Select2 with remote data.
I know how to use an ajax request with other standard web framework, but how should I write it to use with a Meteor server method?
It's not support maximumSelectionLength option?
I use meteor-select2 and set maximumSelectionLength, but it's not useful
While adding package nate-strauser:select2:
error: no such package
I was able to install with meteor add natestrauser:select2
Hello,
could you update select2 to 4.0.1?
Hi @nate-strauser,
Please update select2 package to 4.0.2 if you have time it has include many bug fix.
Thanks for your attention.
I'm not sure what I'm doing wrong but the select2 images I listed above and many of the config options aren't working for me like placeholder, and allowClear. The "width" config option works however. I would greatly appreciate any help. Here is the relevant code:
Template.contactsNew.rendered = ->
# Initialize select boxes
$('#status-select').select2
allowClear: true
placeholder: 'Select a status'
width: '100%'
label Status
select#status-select(name='status')
option(value='active') Active
option(value='inactive') Inactive
option(value='prospect') Prospect
option(value='calling') Calling
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.