Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Material Design Combo box #140

Closed
asaph26 opened this issue Nov 8, 2016 · 6 comments
Closed

Feature: Material Design Combo box #140

asaph26 opened this issue Nov 8, 2016 · 6 comments

Comments

@asaph26
Copy link
Contributor

asaph26 commented Nov 8, 2016

Description of the feature
A combination of a dropdown and an input field. The following should be possible

  • Ability to select the value of the field by using the dropdown
  • Ability to enter the value by typing into the field
  • It should be possible to clear out the typed-in/selected value
  • While characters are being typed in, the dropdown has a similar behaviour to that of an autocomplete dropdown
  • It should work with the Forms module
  • It should have the other default attributes of an input field such as mandatory/disabled etc.

Existing Implementations using other frameworks.
Polymer(Vaadin) : https://github.com/vaadin/vaadin-combo-box
AngularJS (Kendo UI) : http://demos.telerik.com/kendo-ui/combobox/angular

Simple API Example

<td-combo-box 
    [label]="fieldLabel"
    [items]="dataItemsArray"
    [value]="initialValue"
    (change)="onChanged()">
</td-combo-box>

A Featured API Example

<td-combo-box 
    [label]="fieldLabel"
    [items]="dataItemsArray"
    [value]="initialValue"
    [item-label]="propertyInArrayThatShouldBeUsedAsLabel"
    [item-value]="propertyInArrayThatShouldBeUsedAsValue"
    [allowCustomValue]="booleanValue"
    [allowMultiple]="booleanValue"
    (change)="onChanged()"
    (customValueSet)="handleCustomValue()">
</td-combo-box>
@kyleledbetter
Copy link
Contributor

@asaph26 you're referring to the Autocomplete in material design.
This is it in angular-material version1 https://material.angularjs.org/latest/demo/autocomplete

and it's coming in angular-material2, track the progress of their UI components here:
https://github.com/angular/material2#feature-status (issue tracker angular/components#117)

that issue mentions a side project version if you need one to hold you over until material2 releases it https://github.com/creativedeveloper-net/angular2-autocomplete

@kyleledbetter
Copy link
Contributor

we're also tracking those things here #9

@asaph26
Copy link
Contributor Author

asaph26 commented Nov 9, 2016

@kyleledbetter The material 1 implementation(Floating Label/Custom Template) is what I am looking for. However the side project mentioned doesn't satisfy the needs.

The component also contains autocomplete.

From a usability point of view, this is a select box that allows searching to select the options.

@kyleledbetter
Copy link
Contributor

Yup, well it's definitely coming from the official angular-material2 team, keep an eye on angular/components#117

@kyleledbetter
Copy link
Contributor

and it's not nearly as fully featured but we have an autocomplete combined w/ chips in covalent until then https://teradata.github.io/covalent/#/components/chips

@asaph26
Copy link
Contributor Author

asaph26 commented Nov 10, 2016

@kyleledbetter : Thank you. I actually wanted to say the chips component also contains autocomplete. But missed it.

I will close this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants