@@ -46,7 +46,7 @@ export abstract class DropDownBase extends View implements DropDownDefinition {
4646 }
4747
4848 if ( this . isValueListIn ) {
49- return ( items as ValueList < any > ) . getText ( index ) ;
49+ return ( items as ValueList < any > ) . getDisplay ( index ) ;
5050 }
5151
5252 const item = this . isItemsSourceIn ? ( this . items as ItemsSource ) . getItem ( index ) : this . items [ index ] ;
@@ -57,7 +57,7 @@ export abstract class DropDownBase extends View implements DropDownDefinition {
5757export class ValueList < T > extends ObservableArray < ValueItem < T > > implements ValueListDefinition < T > {
5858 private _array : Array < ValueItem < T > > ;
5959
60- public getText ( index : number ) : string {
60+ public getDisplay ( index : number ) : string {
6161 if ( types . isNullOrUndefined ( index ) ) {
6262 return null ;
6363 }
@@ -66,15 +66,15 @@ export class ValueList<T> extends ObservableArray<ValueItem<T>> implements Value
6666 return "" ;
6767 }
6868
69- return this . _array [ index ] . DisplayMember ;
69+ return this . _array [ index ] . display ;
7070 }
7171
7272 public getValue ( index : number ) : T {
7373 if ( types . isNullOrUndefined ( index ) || index < 0 || index >= this . length ) {
7474 return null ;
7575 }
7676
77- return this . _array [ index ] . ValueMember ;
77+ return this . _array [ index ] . value ;
7878 }
7979
8080 public getIndex ( value : T ) : number {
@@ -124,10 +124,10 @@ export const itemsProperty = new Property<DropDownBase, any[] | ItemsSource>({
124124 name : "items" ,
125125 valueChanged : ( target , oldValue , newValue ) => {
126126 const getItem = newValue && ( newValue as ItemsSource ) . getItem ;
127- const getText = newValue && ( newValue as ValueList < any > ) . getText ;
127+ const getDisplay = newValue && ( newValue as ValueList < any > ) . getDisplay ;
128128
129129 target . isItemsSourceIn = typeof getItem === "function" ;
130- target . isValueListIn = typeof getText === "function" ;
130+ target . isValueListIn = typeof getDisplay === "function" ;
131131 }
132132} ) ;
133133itemsProperty . register ( DropDownBase ) ;
0 commit comments