TextFileView โ€บ setViewData

TextFileView.setViewData() method

Set the data to the editor. This is used to load the file contents.

If clear is set, then it means weโ€™re opening a completely different file. In that case, you should call clear(), or implement a slightly more efficient clearing mechanism given the new data to be set.

Signature:

abstract setViewData(data: string, clear: boolean): void;

Parameters

ParameterTypeDescription
datastring
clearboolean

Returns:

void