FileDownloadCommand.execute(fileExtension) Method
Executes the FileDownloadCommand command with the specified parameter.
Declaration
execute(
fileExtension: string | DocumentFormat
): boolean
Parameters
Name | Type | Description |
---|---|---|
fileExtension | string | DocumentFormat | A string value specifying the extension of the downloading file. |
Returns
Type | Description |
---|---|
boolean | true if the command has been successfully executed; false if the command execution has failed. |
Remarks
Usage example:
richEdit.commands.fileDownload.execute(".docx");
See Also