diff --git a/devextreme/dx.devextreme.d.ts b/devextreme/dx.devextreme.d.ts
index 36e3bb6159..f2b6a90485 100644
--- a/devextreme/dx.devextreme.d.ts
+++ b/devextreme/dx.devextreme.d.ts
@@ -1,4 +1,4 @@
-// Type definitions for DevExtreme 14.2+
+// Type definitions for DevExtreme 14.2.7
// Project: http://js.devexpress.com/
// Definitions by: DevExpress Inc.
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -21,6 +21,7 @@ declare module DevExpress {
export module validationEngine {
export interface IValidator {
validate(): ValidatorValidationResult;
+ reset(): void;
}
export interface ValidatorValidationResult {
isValid: boolean;
@@ -38,6 +39,7 @@ declare module DevExpress {
group: any;
validators: IValidator[];
validate(): ValidationGroupValidationResult;
+ reset(): void;
}
/** Provides access to the object that represents the specified validation group. */
export function getGroupConfig(group: any): GroupConfig
@@ -47,6 +49,10 @@ declare module DevExpress {
export function validateGroup(group: any): ValidationGroupValidationResult;
/** Validates rules of the validators that belong to the default validation group. */
export function validateGroup(): ValidationGroupValidationResult;
+ /** Resets the values and validation result of the editors that belong to the specified validation group. */
+ export function resetGroup(group: any): void;
+ /** Resets the values and validation result of the editors that belong to the default validation group. */
+ export function resetGroup(): void;
/** Validates the rules that are defined within the dxValidator objects that are registered for the specified ViewModel. */
export function validateModel(model: Object): ValidationGroupValidationResult;
/** Registers all the dxValidator objects by which the fields of the specified ViewModel are extended. */
@@ -245,6 +251,7 @@ declare module DevExpress {
filter?: Object;
sort?: Object;
select?: Object;
+ expand?: Object;
group?: Object;
skip?: number;
take?: number;
@@ -265,7 +272,7 @@ declare module DevExpress {
updating: JQueryCallback;
constructor(options?: StoreOptions);
/** Returns the data item specified by the key. */
- byKey(key: any, extraOptions?: Object): JQueryPromise;
+ byKey(key: any): JQueryPromise;
/** Adds an item to the data associated with this Store. */
insert(values: Object): JQueryPromise;
/** Returns the key expression specified via the key configuration option. */
@@ -340,7 +347,7 @@ declare module DevExpress {
byKey?: (key: any) => Promise;
/**
* User implementation of the byKey(key, extraOptions) method.
- * @deprecated Use "byKey" instead
+ * @deprecated byKey.md
*/
lookup?: (key: any) => Promise;
/** The user implementation of the insert(values) method. */
@@ -379,6 +386,8 @@ declare module DevExpress {
searchValue?: Object;
/** Specifies the initial select option value. */
select?: Object;
+ /** An array of the strings that represent the names of the navigation properties to be loaded simultaneously with the OData store's entity. */
+ expand?: Object;
/** Specifies the initial sort option value. */
sort?: Object;
/** Specifies the underlying Store instance used to access data. */
@@ -535,6 +544,8 @@ declare module DevExpress {
constructor(options?: ODataStoreOptions);
/** Creates the Query object for the OData endpoint. */
createQuery(loadOptions: Object): Object;
+ /** Returns the data item specified by the key. */
+ byKey(key: any, extraOptions?: { expand?: Object }): JQueryPromise;
}
/** An universal chainable data query interface object. */
export interface Query {
@@ -657,7 +668,7 @@ declare module DevExpress {
items?: Array;
/**
* A function performed when a widget item is selected.
- * @deprecated Use the 'onSelectionChanged' option instead
+ * @deprecated onSelectionChanged.md
*/
itemSelectAction?: Function;
/** The template to be used for rendering items. */
@@ -713,11 +724,11 @@ declare module DevExpress {
/** The template to be used for rendering items. */
itemTemplate?: any;
/** The currently selected value in the widget. */
- value?: any;
+ value?: Object;
}
export interface EditorOptions extends WidgetOptions {
/** The currently specified value. */
- value?: any;
+ value?: Object;
/** A handler for the valueChanged event. */
onValueChanged?: Function;
valueChangeAction?: Function;
@@ -729,6 +740,8 @@ declare module DevExpress {
isValid?: boolean;
/** Specifies how the message about the validation rules that are not satisfied by this editor's value is displayed. */
validationMessageMode?: string;
+ /** Resets the editor's value to undefined. */
+ reset(): void;
}
/** A base class for editors. */
export class Editor extends Widget { }
@@ -817,6 +830,24 @@ declare module DevExpress.framework {
/** Formats an object to a URI. */
format(obj: Object): string;
}
+ export interface StateManagerOptions {
+ /** A storage to which the state manager saves the application state. */
+ storage?: Object;
+ }
+ /** An object used to store the current application state. */
+ export class StateManager {
+ constructor(options?: StateManagerOptions);
+ /** Adds an object that implements an interface of a state source to the state manager's collection of state sources. */
+ addStateSource(stateSource: Object): void;
+ /** Removes a specified state source from the state manager's collection of state sources. */
+ removeStateSource(stateSource: Object): void;
+ /** Saves the current application state. */
+ saveState(): void;
+ /** Restores the application state that has been saved by the saveState() method to the state storage. */
+ restoreState(): void;
+ /** Removes the application state that has been saved by the saveState() method to the state storage. */
+ clearState(): void;
+ }
export module html {
export var layoutSets: Array;
export interface HtmlApplicationOptions {
@@ -824,7 +855,7 @@ declare module DevExpress.framework {
commandMapping?: Object;
/**
* The name of the default layout used by the application.
- * @deprecated Use the "navigationType" option instead.
+ * @deprecated navigationType.md
*/
defaultLayout?: string;
/** Specifies whether or not view caching is disabled. */
@@ -839,14 +870,18 @@ declare module DevExpress.framework {
navigateToRootViewMode?: string;
/** An array of dxCommand configuration objects used to define commands available from the application's global navigation. */
navigation?: Array;
+ /** A state manager to be used in the application. */
+ stateManager?: StateManager;
+ /** Specifies the storage to be used by the application's state manager to store the application state. */
+ stateStorage?: Object;
/**
* Specifies a strategy for choosing layouts for views in your application.
- * @deprecated Use the "layoutSet" option instead.
+ * @deprecated layoutSet.md
*/
navigationType?: string;
/**
* Specifies the object that represents the root namespace of the application.
- * @deprecated Use the "namespace" option instead.
+ * @deprecated namespace.md
*/
ns?: Object;
/** Indicates whether on not to use the title of the previously displayed view as text on the Back button. */
@@ -879,13 +914,15 @@ declare module DevExpress.framework {
viewCache: ViewCache;
/** An array of dxCommand components that are created based on the application's navigation option value. */
navigation: Array;
+ /** Provides access to the StateManager object. */
+ stateManager: StateManager;
/** Provides access to the Router object. */
router: Router;
/** Navigates to the URI preceding the current one in the navigation history. */
back(): void;
/** Returns a Boolean value indicating whether or not backwards navigation is currently possible. */
canBack(): boolean;
- /** Removes the application state that has been saved by the saveState() method to the state storage. */
+ /** Calls the clearState() method of the application's StateManager object. */
clearState(): void;
/** Creates global navigation commands. */
createNavigation(navigationConfig: Array): void;
@@ -899,9 +936,9 @@ declare module DevExpress.framework {
navigate(uri?: any, options?: Object): void;
/** Renders navigation commands to the navigation command containers that are located in the layouts used in the application. */
renderNavigation(): void;
- /** Restores the application state that has been saved by the saveState() method to the state storage, and applies it to the application. */
+ /** Calls the restoreState() method of the application's StateManager object. */
restoreState(): void;
- /** Saves the current application state. */
+ /** Calls the saveState method of the application's StateManager object. */
saveState(): void;
/** Provides access to the object that defines the current context to be considered when choosing an appropriate template for a view. */
templateContext(): Object;
@@ -1039,6 +1076,8 @@ declare module DevExpress.ui {
constructor(element: Element, options?: dxValidatorOptions);
/** Validates the value of the editor that is controlled by the current dxValidator object against the list of the specified validation rules. */
validate(): validationEngine.ValidatorValidationResult;
+ /** Resets the value and validation result of the editor associated with the current dxValidator object. */
+ reset(): void;
}
/** The widget that is used in the Knockout and Angular approaches to combine the editors to be validated. */
export class dxValidationGroup extends DOMComponent {
@@ -1046,6 +1085,8 @@ declare module DevExpress.ui {
constructor(element: Element);
/** Validates rules of the validators that belong to the current validation group. */
validate(): validationEngine.ValidationGroupValidationResult;
+ /** Resets the value and validation result of the editors that are included to the current validation group. */
+ reset(): void;
}
export interface dxValidationSummaryOptions extends CollectionWidgetOptions {
/** Specifies the validation group for which summary should be generated. */
@@ -1082,6 +1123,15 @@ declare module DevExpress.ui {
searchEnabled?: boolean;
/** Specifies whether or not the widget displays items by pages. */
pagingEnabled?: boolean;
+ /** The text or HTML markup displayed by the widget if the item collection is empty. */
+ noDataText?: string;
+ /** A handler for the selectionChanged event. */
+ onSelectionChanged?: Function;
+ /** A handler for the itemClick event. */
+ onItemClick?: Function;
+ onContentReady?: Function;
+ /** Specifies whether or not the widget supports the focused state and keyboard navigation. */
+ focusStateEnabled?: boolean;
}
/** A base class for drop-down list widgets. */
export class dxDropDownList extends dxDropDownEditor {
@@ -1160,12 +1210,19 @@ declare module DevExpress.ui {
/** Specifies the current value displayed by the widget. */
value?: any;
valueUpdateAction?: Function;
- valueChangeAction?: Function;
/** Specifies DOM event names that update a widget's value. */
valueChangeEvent?: string;
valueUpdateEvent?: string;
/** Specifies whether or not the widget checks the inner text for spelling mistakes. */
spellcheck?: boolean;
+ /** Specifies HTML attributes applied to the inner input element of the widget. */
+ attr?: Object;
+ /** The read-only option that holds the text displayed by the widget input element. */
+ text?: string;
+ /** Specifies whether or not the widget supports the focused state and keyboard navigation. */
+ focusStateEnabled?: boolean;
+ /** A Boolean value specifying whether or not the widget changes its state when being hovered by an end user. */
+ hoverStateEnabled?: boolean;
}
/** A base class for text editing widgets. */
export class dxTextEditor extends Editor {
@@ -1197,6 +1254,8 @@ declare module DevExpress.ui {
constructor(element: Element, options?: dxTextAreaOptions);
}
export interface dxTabsOptions extends CollectionWidgetOptions {
+ /** Specifies whether the widget enables an end-user to select only a single item or multiple items. */
+ selectionMode?: string;
/** Specifies whether or not an end-user can scroll tabs by swiping. */
scrollByContent?: boolean;
/** Specifies whether or not an end-user can scroll tabs. */
@@ -1216,8 +1275,9 @@ declare module DevExpress.ui {
onTitleHold?: Function;
/** A handler for the titleRendered event. */
onTitleRendered?: Function;
- /** A template to be used for rendering the widget title. */
titleTemplate?: any;
+ /** The template to be used for rendering an item title. */
+ itemTitleTemplate?: any;
}
/** A widget used to display a view and to switch between several views by clicking the appropriate tabs. */
export class dxTabPanel extends dxMultiView {
@@ -1230,32 +1290,16 @@ declare module DevExpress.ui {
/** The text that is provided as a hint in the select box editor. */
placeholder?: string;
/** Specifies whether or not the widget allows an end-user to enter a custom value. */
- editEnabled?: boolean;
+ fieldEditEnabled?: boolean;
}
/** A widget that allows you to select an item in a dropdown list. */
export class dxSelectBox extends dxDropDownList {
constructor(element: JQuery, options?: dxSelectBoxOptions);
constructor(element: Element, options?: dxSelectBoxOptions);
- /** Closes the drop-down editor. */
- close(): void;
- /** Opens the drop-down editor. */
- open(): void;
}
export interface dxTagBoxOptions extends dxSelectBoxOptions {
/** Holds the list of selected values. */
values?: Array;
- /** Holds the last selected value. */
- value?: any;
- /** A handler for the valueChanged event. */
- onValueChanged?: (e: {
- component: dxTagBox;
- element: JQuery;
- model: Object;
- value: Object;
- values: Object;
- itemData: Object;
- jQueryEvent: JQueryEventObject;
- }) => void;
}
/** A widget that allows you to select multiple items from a dropdown list. */
export class dxTagBox extends dxSelectBox {
@@ -1310,6 +1354,12 @@ declare module DevExpress.ui {
updateAction?: Function;
/** Indicates whether to use native or simulated scrolling. */
useNative?: boolean;
+ /** A Boolean value specifying whether to enable or disable the bounce-back effect. */
+ bounceEnabled?: boolean;
+ /** A Boolean value specifying whether or not an end-user can scroll the widget content swiping it up or down. */
+ scrollByContent?: boolean;
+ /** A Boolean value specifying whether or not an end-user can scroll the widget content using the scrollbar. */
+ scrollByThumb?: boolean;
}
/** A widget used to display scrollable content. */
export class dxScrollable extends DOMComponent {
@@ -1369,6 +1419,8 @@ declare module DevExpress.ui {
width?: any;
/** Specifies items displayed on the top or bottom toolbar of the popup window. */
buttons?: Array;
+ /** Specifies whether or not the widget displays the Close button. */
+ showCloseButton?: boolean;
/** A handler for the titleRendered event. */
onTitleRendered?: Function;
}
@@ -1396,6 +1448,8 @@ declare module DevExpress.ui {
export class dxPopover extends dxPopup {
constructor(element: JQuery, options?: dxPopoverOptions);
constructor(element: Element, options?: dxPopoverOptions);
+ /** Displays the widget for the specified target element. */
+ show(target?: any): JQueryPromise;
}
export interface dxOverlayOptions extends WidgetOptions {
/** An object that defines the animation options of the widget. */
@@ -1449,13 +1503,15 @@ declare module DevExpress.ui {
show(): JQueryPromise;
/** Toggles the visibility of the widget. */
toggle(showing: boolean): JQueryPromise;
+ /** A static method that specifies the default z-index for all overlay widgets. */
+ static baseZIndex(zIndex: number): void;
}
export interface dxNumberBoxOptions extends dxTextEditorOptions {
/** The maximum value accepted by the number box. */
max?: number;
/** The minimum value accepted by the number box. */
min?: number;
- /** Specifies whether to show spin buttons. */
+ /** Specifies whether or not to show spin buttons. */
showSpinButtons?: boolean;
useTouchSpinButtons?: boolean;
/** Specifies by which value the widget value changes when a spin button is clicked. */
@@ -1468,7 +1524,9 @@ declare module DevExpress.ui {
constructor(element: JQuery, options?: dxNumberBoxOptions);
constructor(element: Element, options?: dxNumberBoxOptions);
}
- export interface dxNavBarOptions extends dxTabsOptions { }
+ export interface dxNavBarOptions extends dxTabsOptions {
+ scrollingEnabled?: boolean;
+ }
/** A widget that contains items used to navigate through application views. */
export class dxNavBar extends dxTabs {
constructor(element: JQuery, options?: dxNavBarOptions);
@@ -1526,7 +1584,7 @@ declare module DevExpress.ui {
}
/**
* An object, a string, or an array specifying the location displayed at the center of the widget.
- * @deprecated Use the 'center' option instead
+ * @deprecated center.md
*/
location?: {
lat?: number;
@@ -1586,8 +1644,8 @@ declare module DevExpress.ui {
clearButtonText?: string;
/** A Boolean value specifying whether or not the widget is closed if a user clicks outside of the overlaying window. */
closeOnOutsideClick?: any;
- /** The text displayed on the Done button. */
- doneButtonText?: string;
+ /** The text displayed on the Apply button. */
+ applyButtonText?: string;
/** A Boolean value specifying whether or not to display the lookup in full-screen mode. */
fullScreen?: boolean;
/** A Boolean value specifying whether or not to group widget items. */
@@ -1597,8 +1655,6 @@ declare module DevExpress.ui {
groupTemplate?: any;
/** The text displayed on the button used to load the next page from the data source. */
nextButtonText?: string;
- /** The text or HTML markup displayed by the widget if there are no items satisfying the specified search condition. */
- noDataText?: string;
/** A handler for the pageLoading event. */
onPageLoading?: Function;
pageLoadingAction?: Function;
@@ -1634,8 +1690,6 @@ declare module DevExpress.ui {
shading?: boolean;
/** Specifies whether to display the Cancel button in the lookup window. */
showCancelButton?: boolean;
- /** Specifies whether to display the Done button in the lookup window. */
- showDoneButton?: boolean;
/** A Boolean value specifying whether the widget loads the next page automatically when you reach the bottom of the list or when a button is clicked. */
showNextButton?: boolean;
/** The title of the lookup window. */
@@ -1649,10 +1703,11 @@ declare module DevExpress.ui {
/** A handler for the valueChanged event. */
onValueChanged?: Function;
contentReadyAction?: Function;
- onContentReady?: Function;
titleRender?: any;
/** A handler for the titleRendered event. */
onTitleRendered?: Function;
+ /** Specifies whether or not the widget supports the focused state and keyboard navigation. */
+ focusStateEnabled?: boolean;
}
/** A widget that allows a user to select predefined values from a lookup window. */
export class dxLookup extends dxDropDownList {
@@ -1703,7 +1758,7 @@ declare module DevExpress.ui {
deleteEnabled?: boolean;
/**
* A mode specifying how to delete a list item.
- * @deprecated Use the "deleteType" option instead.
+ * @deprecated deleteType.md
*/
deleteMode?: string;
/** Specifies the way a user can delete items from the list. */
@@ -1721,14 +1776,14 @@ declare module DevExpress.ui {
selectionEnabled?: boolean;
/**
* A mode specifying how to select a list item.
- * @deprecated Use the "selectionType" option instead.
+ * @deprecated selectionType.md
*/
selectionMode?: string;
/** A type specifying how to select a list item. */
selectionType?: string;
/** Specifies whether the item list represented by this widget is editable. */
editEnabled?: boolean;
- /** Specifies whether or not to show the load panel during data loading. */
+ /** Specifies whether or not to show the loading panel when the DataSource bound to the widget is loading data. */
indicateLoading?: boolean;
};
/** A Boolean value specifying whether or not to display a grouped list. */
@@ -1736,6 +1791,7 @@ declare module DevExpress.ui {
groupRender?: any;
/** The name of the template used to display a group header. */
groupTemplate?: any;
+ onItemDeleting?: Function;
/** A handler for the itemDeleted event. */
onItemDeleted?: Function;
itemDeleteAction?: Function;
@@ -1774,8 +1830,8 @@ declare module DevExpress.ui {
selectionMode?: string;
/** A Boolean value specifying whether the widget loads the next page automatically when you reach the bottom of the list or when a button is clicked. */
showNextButton?: boolean;
- /** A Boolean value specifying if the widget scrollbar is visible. */
- showScrollbar?: boolean;
+ /** Specifies when the widget shows the scrollbar. */
+ showScrollbar?: string;
/** Specifies whether or not the widget uses native scrolling. */
useNativeScrolling?: boolean;
itemUnselectAction?: Function;
@@ -1831,7 +1887,7 @@ declare module DevExpress.ui {
unselectItem(itemIndex: any): void;
/**
* Updates the widget scrollbar according to widget content size.
- * @deprecated Use the "updateDimensions" method instead.
+ * @deprecated updateDimensions.md
*/
update(): JQueryPromise;
/** Updates the widget scrollbar according to widget content size. */
@@ -1844,6 +1900,8 @@ declare module DevExpress.ui {
export interface dxGalleryOptions extends CollectionWidgetOptions {
/** The time, in milliseconds, spent on slide animation. */
animationDuration?: number;
+ /** Specifies whether or not to animate the displayed item change. */
+ animationEnabled?: boolean;
/** A Boolean value specifying whether or not to allow users to switch between items by clicking an indicator. */
indicatorEnabled?: boolean;
/** A Boolean value specifying whether or not to scroll back to the first item after the last item is swiped. */
@@ -1871,16 +1929,25 @@ declare module DevExpress.ui {
prevItem(animation: boolean): JQueryPromise;
}
export interface dxDropDownEditorOptions extends dxTextBoxOptions {
+ /** Specifies the current value displayed by the widget. */
+ value?: Object;
/** A handler for the closed event. */
onClosed?: Function;
/** A handler for the opened event. */
onOpened?: Function;
- /** Specifies whether or not the drop-down window is displayed. */
+ /** Specifies whether or not the drop-down editor is displayed. */
opened?: boolean;
closeAction?: Function;
openAction?: Function;
shownAction?: Function;
hiddenAction?: Function;
+ /** Specifies whether or not the widget allows an end-user to enter a custom value. */
+ fieldEditEnabled?: boolean;
+ editEnabled?: boolean;
+ /** Specifies the way an end-user applies the selected value. */
+ applyValueMode?: string;
+ /** Specifies whether or not the widget supports the focused state and keyboard navigation. */
+ focusStateEnabled?: boolean;
}
/** A drop-down editor widget. */
export class dxDropDownEditor extends dxTextBox {
@@ -1890,12 +1957,10 @@ declare module DevExpress.ui {
close(): void;
/** Opens the drop-down editor. */
open(): void;
+ /** Resets the widget's value to null. */
+ reset(): void;
}
export interface dxDateBoxOptions extends dxTextEditorOptions {
- /** A dxCalendar configuration object used to initialize the drop-down calendar. */
- calendarOptions?: dxCalendarOptions;
- /** Specifies whether or not to close the drop-down calendar when widget value has been changed. */
- closeOnValueChange?: boolean;
/** A format used to display date/time information. */
format?: string;
/** A Globalize format string specifying the date display format. */
@@ -1906,7 +1971,7 @@ declare module DevExpress.ui {
min?: Date;
/** The text displayed by the widget when the widget value is not yet specified. This text is also used as a title of the date picker. */
placeholder?: string;
- /** Specifies whether or not a user can pick out a date via the drop-down calendar. */
+ /** Specifies whether or not a user can pick out a date using the drop-down calendar. */
useCalendar?: boolean;
/** A Date object specifying the date and time currently selected using the date box. */
value?: Date;
@@ -1916,7 +1981,7 @@ declare module DevExpress.ui {
interval?: number;
}
/** A date box widget. */
- export class dxDateBox extends dxTextEditor {
+ export class dxDateBox extends dxDropDownEditor {
constructor(element: JQuery, options?: dxDateBoxOptions);
constructor(element: Element, options?: dxDateBoxOptions);
}
@@ -1990,12 +2055,14 @@ declare module DevExpress.ui {
/** Specifies the screen factor with which all elements are located in a single column. */
singleColumnScreen?: string;
}
- /** A widget used to build an adaptive markup dependent on screen resolution. */
+ /** A widget used to build an adaptive markup that is dependent on screen resolution. */
export class dxResponsiveBox extends CollectionWidget {
constructor(element: JQuery, options?: dxBoxOptions);
constructor(element: Element, options?: dxBoxOptions);
}
export interface dxAutocompleteOptions extends dxDropDownListOptions {
+ /** Specifies the current value displayed by the widget. */
+ value?: string;
/** The minimum number of characters that must be entered into the text box to begin a search. */
minSearchLength?: number;
/** Specifies the maximum count of items displayed by the widget. */
@@ -2041,21 +2108,11 @@ declare module DevExpress.ui {
/** Expands the specified item. */
expandItem(index: number): JQueryPromise;
}
- export interface dxFileUploaderFile {
- /** Specifies the selected file name. */
- name?: string;
- /** Specifies the selected file size in bytes. */
- size?: number;
- /** Specifies the MIME type of the selected file. */
- type?: string;
- /** Specifies the date and time of the last selected file modification. */
- lastModifiedDate?: Date;
- }
export interface dxFileUploaderOptions extends EditorOptions {
- /** An object that holds the selected file data. */
- value?: dxFileUploaderFile;
- /** Holds data of the files selected in the widget. */
- values?: Array;
+ /** A read-only option that holds a File instance representing the selected file. */
+ value?: File;
+ /** Holds the File instances representing files selected in the widget. */
+ values?: Array;
/** Specifies the text displayed on the button opening the file selection dialog. */
buttonText?: string;
/** Specifies the text displayed on the area to which an end-user can drop a file. */
@@ -2093,7 +2150,7 @@ declare module DevExpress.ui {
/** A handler for the complete event. */
onComplete?: Function;
}
- /** A widget used to indicate a progress. */
+ /** A widget used to indicate progress. */
export class dxProgressBar extends dxTrackBar {
constructor(element: JQuery, options?: dxProgressBarOptions);
constructor(element: Element, options?: dxProgressBarOptions);
@@ -2175,7 +2232,7 @@ declare module DevExpress.ui {
constructor(element: JQuery, options?: dxSwitchOptions);
constructor(element: Element, options?: dxSwitchOptions);
}
- export interface dxSlideoutOptions extends CollectionWidgetOptions {
+ export interface dxSlideOutOptions extends CollectionWidgetOptions {
/** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */
activeStateEnabled?: boolean;
/** A Boolean value specifying whether or not to display a grouped menu. */
@@ -2190,11 +2247,13 @@ declare module DevExpress.ui {
menuVisible?: boolean;
/** Indicates whether the menu can be shown/hidden by swiping the widget's main panel. */
swipeEnabled?: boolean;
+ /** A template to be used for rendering widget content. */
+ contentTemplate?: any;
}
- /** The dxSlideOut widget allows you to slide-out the current view to reveal an item list. */
+ /** The widget that allows you to slide-out the current view to reveal an item list. */
export class dxSlideOut extends CollectionWidget {
- constructor(element: JQuery, options?: dxSlideoutOptions);
- constructor(element: Element, options?: dxSlideoutOptions);
+ constructor(element: JQuery, options?: dxSlideOutOptions);
+ constructor(element: Element, options?: dxSlideOutOptions);
/** Hides the widget's slide-out menu. */
hideMenu(): JQueryPromise;
/** Displays the widget's slide-out menu. */
@@ -2205,6 +2264,8 @@ declare module DevExpress.ui {
export interface dxPivotOptions extends CollectionWidgetOptions {
/** The index of the currently active pivot item. */
selectedIndex?: number;
+ /** A template to be used for rendering widget content. */
+ contentTemplate?: any;
}
/** A widget that is similar to a traditional tab control, but optimized for the phone with simplified end-user interaction. */
export class dxPivot extends CollectionWidget {
@@ -2257,12 +2318,20 @@ declare module DevExpress.ui {
popupWidth?: any;
/** The height of the menu popup in pixels. */
popupHeight?: any;
+ /** Specifies whether or not the drop-down menu is displayed. */
+ opened?: boolean;
+ /** A Boolean value specifying whether or not the widget changes its state when being hovered by an end user. */
+ hoverStateEnabled?: boolean;
}
/** A drop-down menu widget. */
export class dxDropDownMenu extends Widget {
constructor(element: JQuery, options?: dxDropDownEditorOptions);
constructor(element: Element, options?: dxDropDownEditorOptions);
/** This section lists the data source fields that are used in a default template for drop-down menu items. */
+ /** Opens the drop-down menu. */
+ open(): void;
+ /** Closes the drop-down menu. */
+ close(): void;
}
export interface dxActionSheetOptions extends CollectionWidgetOptions {
cancelClickAction?: any;
@@ -2270,7 +2339,7 @@ declare module DevExpress.ui {
onCancelClick?: any;
/** The text displayed in the button that closes the action sheet. */
cancelText?: string;
- /** Specifies whether to display the Cancel button in action sheet. */
+ /** Specifies whether or not to display the Cancel button in action sheet. */
showCancelButton?: boolean;
/** A Boolean value specifying whether or not the title of the action sheet is visible. */
showTitle?: boolean;
@@ -2297,14 +2366,11 @@ declare module DevExpress.ui {
export interface dxColorBoxOptions extends dxDropDownEditorOptions {
/** Specifies the text displayed on the button that applies changes and closes the drop-down editor. */
applyButtonText?: string;
- /** Specifies whether the widget value is updated after the Apply button is clicked or immediately after a color is selected in the palette. */
applyValueMode?: string;
/** Specifies the text displayed on the button that cancels changes and closes the drop-down editor. */
cancelButtonText?: string;
/** Specifies whether or not the widget value includes the alpha channel component. */
editAlphaChannel?: boolean;
- /** The color currently selected by the widget. */
- value?: string;
}
/** A widget used to specify a color value. */
export class dxColorBox extends dxDropDownEditor {
@@ -2323,7 +2389,12 @@ declare module DevExpress.ui {
export interface dxTreeViewOptions extends CollectionWidgetOptions {
/** Specifies whether a nested or plain array is used as a data source. */
dataStructure?: string;
- /** An array of currently expanded item objects. */
+ /** Specifies whether or not a user can expand all tree view items by the "*" hot key. */
+ expandAllEnabled?: boolean;
+ /**
+ * An array of currently expanded item objects.
+ * @deprecated Use item.expanded field instead
+ */
expandedItems?: Array;
/** Specifies whether or not a check box is displayed at each tree view item. */
showCheckBoxes?: boolean;
@@ -2345,6 +2416,7 @@ declare module DevExpress.ui {
itemsExpr?: any;
/** Specifies the name of the data source item field that holds the key of the parent item. */
parentIdExpr?: any;
+ disabledExpr?: any;
/** A string value specifying available scrolling directions. */
scrollDirection?: string;
/** A handler for the itemSelected event. */
@@ -2370,6 +2442,10 @@ declare module DevExpress.ui {
collapseItem(itemElement: any): void;
/** Returns all nodes of the tree view. */
getNodes(): Array