@@ -8,6 +8,7 @@ import dxPopup from "devextreme/ui/popup";
88import {
99 ApplyValueMode ,
1010 TextEditorButton ,
11+ template ,
1112 LabelMode ,
1213 EditorStyle ,
1314 ValidationMessageMode ,
@@ -26,6 +27,7 @@ import {
2627} from "devextreme/common" ;
2728import {
2829 DropDownPredefinedButton ,
30+ FieldTemplate ,
2931} from "devextreme/ui/drop_down_editor/ui.drop_down_editor" ;
3032import {
3133 dxPopupOptions ,
@@ -96,6 +98,7 @@ type AccessibleOptions = Pick<Properties,
9698 "editAlphaChannel" |
9799 "elementAttr" |
98100 "fieldTemplate" |
101+ "fieldTemplates" |
99102 "focusStateEnabled" |
100103 "height" |
101104 "hint" |
@@ -162,7 +165,8 @@ const componentConfig = {
162165 dropDownOptions : Object as PropType < dxPopupOptions < any > | Record < string , any > > ,
163166 editAlphaChannel : Boolean ,
164167 elementAttr : Object as PropType < Record < string , any > > ,
165- fieldTemplate : { } ,
168+ fieldTemplate : [ Object , Function ] as PropType < FieldTemplate | ( ( ( data : any , element : any ) => string | any ) ) | template > ,
169+ fieldTemplates : Object as PropType < Record < string , any > > ,
166170 focusStateEnabled : Boolean ,
167171 height : [ Number , String ] ,
168172 hint : String ,
@@ -226,6 +230,7 @@ const componentConfig = {
226230 "update:editAlphaChannel" : null ,
227231 "update:elementAttr" : null ,
228232 "update:fieldTemplate" : null ,
233+ "update:fieldTemplates" : null ,
229234 "update:focusStateEnabled" : null ,
230235 "update:height" : null ,
231236 "update:hint" : null ,
0 commit comments