TextFileView.setData method
TextFileView › setData
Unofficial
Set the data to the editor. This is used to load the file contents.Signature:
setData(data: string, clear: boolean): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| data | string | The new data. |
| clear | boolean | 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. |
Returns: void