<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`FileView`](FileView) › [`onLoadFile`](FileView/onLoadFile) ## FileView.onLoadFile() method **Signature:** ```typescript onLoadFile(file: TFile): Promise<void>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>file</code> | [`TFile`](TFile) | | **Returns:** `Promise<void>`