Skip to content
This repository has been archived by the owner on Feb 2, 2019. It is now read-only.

Feature/md-autocomplete #202

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


import {CONST_EXPR, Type} from "angular2/src/facade/lang";
import AutocompleteBasicUsage from "./components/autocomplete/basic_usage";
import CardBasicUsage from "./components/card/basic_usage";
import CardInlineActions from "./components/card/inline_actions";
import ButtonBasicUsage from "./components/button/basic_usage";
Expand Down Expand Up @@ -29,6 +30,7 @@ import SidenavBasicUsage from "./components/sidenav/basic_usage";
* Collection of Material Design component example directives.
*/
export const DEMO_DIRECTIVES: Type[] = CONST_EXPR([
AutocompleteBasicUsage,
CardBasicUsage, CardInlineActions, CardActionButtons,
ButtonBasicUsage,
CheckboxBasicUsage, CheckboxSyncing,
Expand Down
12 changes: 12 additions & 0 deletions examples/components/autocomplete/basic_usage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<div layout="column" class="md-inline-form">
<md-content>
<md-subheader>Type into the below area</md-subheader>
<md-divider></md-divider>
<section layout-padding style="padding-bottom: 400px;">
<md-autocomplete-container class="md-block" flex-gt-sm>
<label>Countries</label>
<input md-input [(value)]="test">
</md-autocomplete-container>
</section>
</md-content>
</div>
Empty file.
21 changes: 21 additions & 0 deletions examples/components/autocomplete/basic_usage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import {Component} from "angular2/core";
import {MATERIAL_DIRECTIVES} from "ng2-material/all";
import {FORM_DIRECTIVES} from "angular2/common";


@Component({
selector: 'autocomplete-basic-usage',
templateUrl: 'examples/components/autocomplete/basic_usage.html',
directives: [MATERIAL_DIRECTIVES, FORM_DIRECTIVES]
})
export default class AutocompleteBasicUsage {

countries: Array<string> = ["Albania","Andorra","Armenia","Austria","Azerbaijan","Belarus","Belgium","Bosnia & Herzegovina",
"Bulgaria","Croatia","Cyprus","Czech Republic","Denmark","Estonia","Finland","France","Georgia",
"Germany","Greece","Hungary","Iceland","Ireland","Italy","Kosovo","Latvia","Liechtenstein",
"Lithuania","Luxembourg","Macedonia","Malta","Moldova","Monaco","Montenegro","Netherlands",
"Norway","Poland","Portugal","Romania","Russia","San Marino","Serbia","Slovakia",
"Slovenia","Spain","Sweden","Switzerland","Turkey","Ukraine","United Kingdom","Vatican City"];


}
5 changes: 5 additions & 0 deletions ng2-material/all.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {CONST_EXPR, Type} from "angular2/src/facade/lang";
import {MdAutocompleteContainer} from "./components/autocomplete/autocomplete";
import {MdAnchor, MdButton} from "./components/button/button";
import {MdCheckbox} from "./components/checkbox/checkbox";
import {MdContent} from "./components/content/content";
Expand Down Expand Up @@ -30,6 +31,9 @@ import {SidenavService} from "./components/sidenav/sidenav_service";
import {MdToolbar} from "./components/toolbar/toolbar";
import {MdTabs, MdTab} from "./components/tabs/tabs";
import {Media} from "./core/util/media";

export * from './components/autocomplete/autocomplete';

export * from './components/button/button';

export * from './components/checkbox/checkbox';
Expand Down Expand Up @@ -83,6 +87,7 @@ export * from './core/util/animate';
* Collection of Material Design component directives.
*/
export const MATERIAL_DIRECTIVES: Type[] = CONST_EXPR([
MdAutocompleteContainer,
MdAnchor, MdButton,
MdCheckbox,
MdContent,
Expand Down
1 change: 1 addition & 0 deletions ng2-material/components.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import "components/autocomplete/autocomplete";
@import "components/backdrop/backdrop";
@import "components/button/button";
@import "components/card/card";
Expand Down
Loading