From cc343d8ed26715a54c673d8f1b5aa32bc4e2d588 Mon Sep 17 00:00:00 2001 From: xr0master Date: Sat, 16 Jul 2016 14:52:47 +0300 Subject: [PATCH] Update select.ts Added ability set selected text like md-selected-text --- src/components/select/select.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/select/select.ts b/src/components/select/select.ts index 4b584484b0..600b9216ea 100644 --- a/src/components/select/select.ts +++ b/src/components/select/select.ts @@ -119,7 +119,7 @@ export const SELECT_VALUE_ACCESSOR = new Provider( selector: 'ion-select', template: `
{{placeholder}}
-
{{_text}}
+
{{selectedText || _text}}
@@ -184,6 +184,11 @@ export class Select implements AfterContentInit, ControlValueAccessor, OnDestroy * @input {string} The interface the select should use: `action-sheet` or `alert`. Default: `alert`. */ @Input() interface: string = ''; + + /** + * @input {string} The selected text should be showen. + */ + @Input() selectedText: string = ''; /** * @output {any} Any expression you want to evaluate when the selection has changed.