mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
@ -116,7 +116,8 @@ const SELECT_VALUE_ACCESSOR = new Provider(
|
||||
@Component({
|
||||
selector: 'ion-select',
|
||||
template:
|
||||
'<div class="select-text">{{_text}}</div>' +
|
||||
'<div *ngIf="!_text" class="select-placeholder select-text">{{placeholder}}</div>' +
|
||||
'<div *ngIf="_text" class="select-text">{{_text}}</div>' +
|
||||
'<div class="select-icon">' +
|
||||
'<div class="select-icon-inner"></div>' +
|
||||
'</div>' +
|
||||
@ -159,6 +160,11 @@ export class Select {
|
||||
*/
|
||||
@Input() okText: string = 'OK';
|
||||
|
||||
/**
|
||||
* @input {string} The text to display when the select is empty.
|
||||
*/
|
||||
@Input() placeholder: string;
|
||||
|
||||
/**
|
||||
* @input {any} Any addition options that the alert interface can take.
|
||||
* See the [Alert API docs](../../alert/Alert) for the create options.
|
||||
|
Reference in New Issue
Block a user