Comments (6)
@bes-internal this is a good suggestion. I will implement it in the future release. Thanks for your support to improve this plugin.
from virtual-select.
I would like to get the following parameters (passed during initialization) back in the form of node propertys (as in a regular <select>
node):
- .value (already done)
- .name
- .disabled
- .form (for use as
event.target.form
where target is virtual-select. Not necessary but desirable) - .multiple (already done)
- .required
- .options
- .length
- .selectedOptions (already done as method
getSelectedOptions()
but not as property) - .autofocus
from virtual-select.
I would like to get the following parameters (passed during initialization) back in the form of node propertys (as in a regular
<select>
node):
- .value (already done)
- .name
- .disabled
- .form (for use as
event.target.form
where target is virtual-select. Not necessary but desirable)- .multiple (already done)
- .required
- .options
- .length
- .selectedOptions (already done as method
getSelectedOptions()
but not as property)- .autofocus
@bes-internal I will implement this changes in the future release.
from virtual-select.
The idea is to drop-in replace regular
<select>
with virtual-select. Including for backward compatibility.Need to deepen the idea of using data-* attributes on node. There are limitations as indicated in the documentation. Following properties are not allowed to use as attribute:
- options (need to read the provided
<option>
inside<select>
)- disabledOptions (need to read
disabled
attr on<option>
)- selectedValue (need to read
selected
attr on<option>
)- onServerSearch, labelRenderer (I do not know)
For all of the above, there should be a warning in the documentation that this method is only for backward compatibility and slow on a lot of options. But with a small number of options, this is not a problem at all.
Now initialization on the select, as expected, does not give a result because all the work happens inside the element. Here we may need to add the
replace
property or unconditionally replace depending on Element.tagName.P.S. It will be great. Magic transformation of all select on page into a new-era-select. Yes, this is something from a world where the idea of everything at the front has not yet won, but that is why this project was also created, right?
@bes-internal This feature is available in the release v1.0.22 (more details)
from virtual-select.
I would like to get the following parameters (passed during initialization) back in the form of node propertys (as in a regular
<select>
node):
- .value (already done)
- .name
- .disabled
- .form (for use as
event.target.form
where target is virtual-select. Not necessary but desirable)- .multiple (already done)
- .required
- .options
- .length
- .selectedOptions (already done as method
getSelectedOptions()
but not as property)- .autofocus
@bes-internal This feature is available in the release v1.0.22
.selectedOptions - This prop is not implemented as we already have getSelectedOptions()
method and it might affect the performance.
from virtual-select.
Great. Thanks!
.selectedOptions
the goal is for third-party software to work with this element as with a usual <select>
from virtual-select.
Related Issues (20)
- The onServerSearch function crashes when the 'multiple' key is set to 'false' HOT 2
- Need to use jQuery validation or set a message HOT 1
- Force menu to open below HOT 4
- Switch one option HOT 5
- Missing real "required" tag HOT 5
- Expose the internal const variables and magic values via public constructs on the VirtualSelect class
- Not considering accents when using the search HOT 3
- Entrance animation issue when Open method is triggered. HOT 1
- Not possible to change the (absolute) position of the dropdown HOT 2
- Screen Readers not able to read dropdown options when we have search functionality HOT 3
- Options markSearchResults and labelRenderer does not play well together HOT 1
- programmatically select a duplicate value when no option selected HOT 3
- Make the Mutation Observer optional
- popupDropbox not aligned when document.body.style.zoom is more than 100% HOT 2
- Force the "scrollToIndex" when using setValue HOT 2
- showSelectedOptionsFirst only remember last selected option
- Multiple options "selected" is not working for multiple
- Is it able to select the selectAll option by any key of keyboard? HOT 2
- Display tooltip on truncated labels in tags (multiple mode) HOT 2
- Issue on Dropdowns autofocusing when setting starting options HOT 9
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.