Skip to content

Commit

Permalink
Merge pull request #251 from mobi/add_placeholder_to_goselect
Browse files Browse the repository at this point in the history
Add Placeholder Binding to GoSelect Component
  • Loading branch information
grahamhency authored Oct 7, 2019
2 parents 94da5b7 + 8e27f46 commit 01370e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
[bindLabel]="bindLabel"
[bindValue]="bindValue"
[multiple]="multiple"
[formControl]="control">
[formControl]="control"
[placeholder]="placeholder">
</ng-select>

<go-hint *ngFor="let hint of hints" [message]="hint" [theme]="theme"></go-hint>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class GoSelectComponent implements OnInit {
@Input() key: string;
@Input() label: string;
@Input() multiple: boolean = false;
@Input() placeholder: string;
@Input() theme: 'light' | 'dark' = 'light';

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ <h2 class="go-heading-2">
bindValue="value"
bindLabel="name"
[hints]="['Select an option here, whatever you want']"
placeholder="Select Box Placeholder"
label="Select Box Here">
</go-select>
</div>
Expand Down

0 comments on commit 01370e8

Please sign in to comment.