feat: add optional filter input to component:select#5943
feat: add optional filter input to component:select#5943ahwayakchih wants to merge 8 commits intoDogfalo:v1-devfrom
Conversation
|
Hi, quick question do i actually have to make the feature i want to request? |
|
No
On Sat, May 26, 2018 at 2:39 PM Charbel Sarkis ***@***.***> wrote:
Hi, quick question do i actually have to make the feature i want to
request?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5943 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACpax_VTn5cU0HzteXajlE01UgO4wuP0ks5t2cudgaJpZM4UMDjn>
.
--
Doggy sends his greetings from Mars.
|
|
Great. Can you add custom validation. Exactly like the validation class but |
|
This sounds like a separate request. Please create a new issue for it
On Sat, May 26, 2018 at 2:48 PM Charbel Sarkis ***@***.***> wrote:
Great. Can you add custom validation. Exactly like the validation class but
the user can supply an attribute data-regex to tell it when to succeed
and fail.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5943 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACpax3_unt3qZf_b18lxeyeT590wcOJZks5t2c2zgaJpZM4UMDjn>
.
--
Doggy sends his greetings from Mars.
|
|
Just did. #5945 |
|
@Dogfalo hi, now that totally off topic stuff has been resolved, is there any chance for a comment about the pull request :)? Does it need more changes in code to be accepted, or maybe it won't be accepted because it adds too big of a change, or complicates component a bit, or... ? |
|
We're not adding any more features right now since we're in release candidate build |
|
@Dogfalo thanks for the answer. Do you think this feature could be merged post-1.0 release? |
|
Yes, it seems useful and code is organized |
|
Great! Thanks. |
|
@Dogfalo i updated to latest dev branch and fixed test. Any chance it could be merged now? |
b5d9521 to
ea35385
Compare
|
Hmm if you want, you can send your pull request to the forked one instead https://github.com/materializecss/materialize 😉 |
Proposed changes
In case of long list of options in select field, it might be easier to quickly filter items by text. While current v1-dev branch does contain some filtering, it's not as helpful visually for users.
This change adds optional (available only when
data-filtered="placeholder text"attribute is set onselectelement) input field, that allows user to see what he or she enters while trying to filter the list of items.Additionally, items that do not match the text become hidden (class
hideis added onlielements).Changes were sponsored by Egmont Group.
Screenshots (if appropriate) or codepen:
Types of changes
Checklist: