FileView
Import:
import { FileView } from 'obsidian-test-mocks/obsidian';Signature:
export class FileView extends ItemViewExtends: ItemView
Constructor
new FileView(leaf: WorkspaceLeaf)Properties
| Property | Type | Description |
|---|---|---|
| allowNoFile | boolean | |
| contentEl | HTMLElement | (Inherited from ItemView) |
| file | null | TFile | |
| navigation | boolean |
Methods
| Method | Returns | Description |
|---|---|---|
| addAction(_icon, _title, _callback) | HTMLElement | (Inherited from ItemView) |
| asOriginalType3__() | ItemViewOriginal | (Inherited from ItemView) |
| asOriginalType4__() | FileViewOriginal | |
| canAcceptExtension(_extension) | boolean | |
| constructor3__(_leaf) | void | (Inherited from ItemView) |
| constructor4__(_leaf) | void | |
| getDisplayText() | string | |
| getState() | Record<string, unknown> | |
| onload() | void | |
| onLoadFile(file) | Promise<void> | |
| onRename(_file) | Promise<void> | |
| onUnloadFile(_file) | Promise<void> | |
| setState(state, result) | Promise<void> | |
| static fromOriginalType3__(value) | ItemView | (Inherited from ItemView) |
| static fromOriginalType4__(value) | FileView |
Links to this page: