Back to Devexpress

IEditorInfo Interface

xtrareports-js-devexpress-dot-analytics-dot-utils-dd679be8.md

latest1.8 KB
Original Source

IEditorInfo Interface

Provides information about a serialized property’s value editor used in the Properties window.

Declaration

ts
export interface IEditorInfo

Properties

content Property

Specifies the name of an HTML template used by a complex object’s editor.

Declaration

ts
content?: string

Property Value

TypeDescription
string

The HTML template name.

|

editorType Property

Specifies the type of the editor’s model.

Declaration

ts
editorType?: any

Property Value

TypeDescription
any

The type of the editor’s model.

|

extendedOptions Property

Gets additional options for DevExtreme UI widgets.

Declaration

ts
extendedOptions?: any

Property Value

TypeDescription
any

Editor options.

|

Remarks

You can use the extendedOptions property to customize editors for specifying parameter values as demonstrated below.

javascript
function CustomizeParameterEditors(s, e) {
    if (e.parameter.type === 'System.DateTime') {
        // Show a calendar only without a time part
        e.info.editor = $.extend({}, e.info.editor);
        e.info.editor.extendedOptions = $.extend(e.info.editor.extendedOptions || {}, { type: 'date' });
    }
}

header Property

Specifies the name of an HTML template specifying the editor and header of a complex object.

Declaration

ts
header?: string

Property Value

TypeDescription
string

The HTML template name.

|

type Property

Declaration

ts
type?: string

Property Value

Type
string