Back to Devexpress

FileTabItemId Enum

aspnetcore-js-devexpress-dot-richedit-39d34291.md

latest2.4 KB
Original Source

FileTabItemId Enum

Lists commands contained in the File tab.

Declaration

ts
export enum FileTabItemId {
    CreateNewDocument = 412,
    OpenDocument = 410,
    ExportDocument = 413,
    Download = 414,
    DownloadDocx = 418,
    DownloadRtf = 419,
    DownloadTxt = 420,
    DownloadHtml = 421,
    PrintDocument = 416
}

Members

NameDescription
CreateNewDocument

Identifies the Create New Document command.

| | Download |

Identifies the Download command.

| | DownloadDocx |

Identifies the Download DOCX command.

| | DownloadHtml |

Identifies the Download HTML command.

| | DownloadRtf |

Identifies the Download RTF command.

| | DownloadTxt |

Identifies the Download TXT command.

| | ExportDocument |

Identifies the Save Document command.

| | OpenDocument |

Identifies the Open Document command.

| | PrintDocument |

Identifies the Print Document command.

|

Remarks

The FileTabItemId enum contains identifiers of the File tab’s ribbon items. Use an identifier to get the corresponding item and then insert it into a tab or remove the item from the File tab.

The example below moves the PrintDocument item to the first position in the File tab:

javascript
var options = DevExpress.RichEdit.createOptions();
var tab = options.ribbon.getTab(DevExpress.RichEdit.RibbonTabType.File);
var ribbonItem = tab.getItem(DevExpress.RichEdit.FileTabItemId.PrintDocument);
tab.removeItem(ribbonItem);
tab.insertItem(ribbonItem, 0);
var richContainer = document.getElementById("rich-container");
const richEdit = DevExpress.RichEdit.create(richContainer, options);

To execute the File tab’s command, pass the FileTabCommandId‘s field to the executeCommand(commandId) method.

See Also

RibbonItemId