Comments (3)
Hey @Assafkalfa , thanks!
I think I can add this cancel
button, if it will improve it.
But I need to understand more your needs.
For now, what you need it a callback function, like onSelectionApplied
we have for Apply
, but for This new button called Cancel
. Is that correct?
Regarding the width, you know I put CSS classes on every single component, in order for the user to styles as he wants.
In this case, the dropdown CSS is called .multiselect-section-wrapper
. Is it not enough for you guys?
from react-multiselect-dropdown-button.
Hi @maufarinelli
First of all, thank you for your reply, I very appreciate it
Regarding the cancel - I not want to make you work, it's also great as it now
(Only if you want, for the fun, I mean to add an option to add a custom button with a callback, let's say customButtonClick. For example, in my case the UI/X team ask to add a 'Cancel' button, like we have in Excel - for example, if the first options 1, 3 and 4 were marks, the user open the dropbox and change to 2, 5 and click Cancel - the dropdown should close and options 1, 3 and 4 should be selected).
Regarding the width, maybe is me (truly I'm a backend developer that learning React now..) but I found 'multiselect-button-dropdown-wrapper', not seems the width affect. I also found 'multiselect-section-wrapper' that really affect the dropdown div but I don't know how to define it to be equal to the dropdown-button without set the width manually:
as you can see in the image, 210px of the button-dropdown and 166px of the dropdown width give us ~same width...
Really thank you!!
Assaf
from react-multiselect-dropdown-button.
Hi @maufarinelli
First of all, thank you for your reply, I very appreciate it
Regarding the cancel - I not want to make you work, it's also great now!
(Only if you want, for the fun, I mean to add an option to add a custom button with a callback, let's say customButtonClick. For example, in my case the UI/X team ask to add a 'Cancel' button, like we have in Excel - for example, if at first, options 1, 3 and 4 were checked, and now, the user open the dropbox and change to 2, 5 and click Cancel - the dropdown should close and options 1, 3 and 4 should be selected).
Regarding the width, maybe is me (truly I'm a backend developer that learning React now..) but I found 'multiselect-button-dropdown-wrapper' has no affect on the width. I also found 'multiselect-section-wrapper' that really affect the dropdown div but I don't know how to define it to be equal to the dropdown-button without set the width manually:
as you can see , 210px of the button-dropdown and 166px of the dropdown div give us ~same width...
Really thank you!!
Assaf
from react-multiselect-dropdown-button.
Related Issues (3)
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 react-multiselect-dropdown-button.