Comments (2)
May need to be done in sync with nebiolabs/ebase#86.
from plate-map.
Plate-map should wrap and simplify select2's ajax searching. Plate-map should handle caching of results so that id can be properly assigned.
Rather than using the typical full url/processData/processResults, probably easiest to just provide a function which accepts the search parameters and returns a promise for results. That function would be wrapped within the transport
callback, which would handle calling it and caching the results.
ajax: {
delay: 250,
// You can use a custom AJAX transport function if you do not want to use the
// default one provided by jQuery.
//
// @param params The object containing the parameters used to generate the
// request.
// @param success A callback function that takes `data`, the results from the
// request.
// @param failure A callback function that indicates that the request could
// not be completed.
// @returns An object that has an `abort` function that can be called to abort
// the request if needed.
transport: function (params, success, failure) {
var promise = userFun(params);
promise.then(function (options) {
cacheResults(cache, options);
success(data);
});
promise.fail(failure);
}
}
from plate-map.
Related Issues (20)
- Could someone make a tutorial video how this can be used? HOT 4
- Selecting amplicon shows all amplicon fields - need to be able to select individual components of composite fields
- How hard would it be to make this work for 384-well plate maps? HOT 1
- Add a flag to disable well creation and deletion HOT 1
- Add a feature to enable messaging about selected wells HOT 1
- Add a completely read-only mode HOT 1
- click on the bottom table to select the corresponding wells/group type HOT 1
- Is it possible to iterate through each well one at a time with only one visible well at a time?
- Any plan on releasing to npm ? HOT 4
- Use Select2 v4
- Remove Select2v4.0.6rc1 dropdown workaround when possible
- Required fields don't work well HOT 3
- no longer available on npm? HOT 1
- Will fail silently when applying plate layout if multiple wells are selected
- npm run start crashes on server.dev task due to gulpfile.js path bug
- Search box missing from select2 dropdowns
- LImit number of selections for multiselect HOT 1
- Product/Lot picker
- Add warning for copying from multiple wells
- prepend is adding HTML elements multiple times
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plate-map.