BrowserView
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:6
Extends
Properties
_children
_children:
Component
[]
Defined in: src/obsidian/augmentations/Components/Component.d.ts:9
Child Components attached to current component, will be unloaded on unloading parent component
Inherited from
_events
_events:
EventRef
[]
Defined in: src/obsidian/augmentations/Components/Component.d.ts:13
Events that are attached to the current component, will be detached on unloading parent component
Inherited from
_loaded
_loaded:
boolean
Defined in: src/obsidian/augmentations/Components/Component.d.ts:17
Whether the component and its children are loaded
Inherited from
actionsEl
actionsEl:
HTMLElement
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:9
Container of actions for the view
Inherited from
app
app:
App
Defined in: obsidian.d.ts:4461
Inherited from
backButtonEl
backButtonEl:
HTMLButtonElement
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:13
Back button element for changing view history
Inherited from
canDropAnywhere
canDropAnywhere:
boolean
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:17
Whether the view may be dropped anywhere in workspace
Inherited from
closeable
closeable:
boolean
Defined in: src/obsidian/augmentations/Views/View.d.ts:10
Whether the leaf may close the view
Inherited from
containerEl
containerEl:
HTMLElement
Defined in: obsidian.d.ts:4484
Inherited from
contentEl
contentEl:
HTMLElement
Defined in: obsidian.d.ts:2056
Inherited from
forwardButtonEl
forwardButtonEl:
HTMLButtonElement
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:21
Forward button element for changing view history
Inherited from
headerEl
headerEl:
HTMLElement
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:25
Header bar container of view
Inherited from
icon
icon:
string
Defined in: obsidian.d.ts:4465
Inherited from
iconEl
iconEl:
HTMLElement
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:29
Icon element for the view (for dragging)
Inherited from
leaf
leaf:
WorkspaceLeaf
Defined in: obsidian.d.ts:4480
Inherited from
moreOptionsButtonEl
moreOptionsButtonEl:
HTMLAnchorElement
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:33
Anchor button for revealing more view actions
Inherited from
navigation
navigation:
boolean
Defined in: obsidian.d.ts:4475
Whether or not the view is intended for navigation. If your view is a static view that is not intended to be navigated away, set this to false. (For example: File explorer, calendar, etc.) If your view opens a file or can be otherwise navigated, set this to true. (For example: Markdown editor view, Kanban view, PDF view, etc.)
Inherited from
scope
scope:
null
|Scope
Defined in: obsidian.d.ts:4496
Assign an optional scope to your view to register hotkeys for when the view is in focus.
Example
Default
Inherited from
titleContainerEl
titleContainerEl:
HTMLElement
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:37
Container for the title of the view
Inherited from
titleEl
titleEl:
HTMLElement
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:41
Title element for the view
Inherited from
titleParentEl
titleParentEl:
HTMLElement
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:47
Title of the parent
Inherited from
Methods
addAction()
Call Signature
addAction(
icon
,title
,callback
):HTMLElement
Defined in: obsidian.d.ts:2066
Parameters
icon
string
title
string
callback
(evt
) => any
Returns
Inherited from
Call Signature
addAction(
icon
,title
,callback
):HTMLElement
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:55
Adds an action button to the header of the view
Parameters
icon
string
The icon for the action
title
string
The title for the action
callback
(evt
) => any
Callback to execute on click
Returns
Inherited from
addChild()
addChild<
T
>(component
):T
Defined in: obsidian.d.ts:887
Adds a child component, loading it if this component is loaded
Type Parameters
• T extends Component
Parameters
component
T
Returns
T
Inherited from
close()
close():
Promise
<void
>
Defined in: src/obsidian/augmentations/Views/View.d.ts:21
Closes the view
Returns
Promise
<void
>
Inherited from
closeSearch()
closeSearch():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:8
Returns
void
commitPageLoad()
commitPageLoad():
unknown
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:10
Returns
unknown
configureWebContents()
configureWebContents():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:12
Returns
void
contextMenuItemsForImg()
contextMenuItemsForImg(
e
):unknown
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:14
Parameters
e
unknown
Returns
unknown
contextMenuItemsForLink()
contextMenuItemsForLink(
e
,t
):unknown
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:16
Parameters
e
unknown
t
unknown
Returns
unknown
contextMenuItemsForSelection()
contextMenuItemsForSelection(
e
,t
):unknown
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:18
Parameters
e
unknown
t
unknown
Returns
unknown
displayBlank()
displayBlank():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:20
Returns
void
displayContextMenu()
displayContextMenu(
e
):void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:22
Parameters
e
unknown
Returns
void
displayErrorView()
displayErrorView():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:26
Shows the error view
Returns
void
displayReaderView()
displayReaderView():
Promise
<unknown
>
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:28
Returns
Promise
<unknown
>
displayWebView()
displayWebView():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:32
Shows the webview
Returns
void
getDisplayText()
abstract
getDisplayText():string
Defined in: obsidian.d.ts:4542
Returns
string
Inherited from
getEphemeralState()
Call Signature
getEphemeralState():
Record
<string
,unknown
>
Defined in: obsidian.d.ts:4525
Returns
Record
<string
, unknown
>
Inherited from
Call Signature
getEphemeralState():
object
Defined in: src/obsidian/augmentations/Views/View.d.ts:25
Gets the ephemeral (non-persistent) state of the editor
Returns
object
Inherited from
getIcon()
Call Signature
getIcon():
string
Defined in: obsidian.d.ts:4533
Returns
string
Inherited from
Call Signature
getIcon():
string
Defined in: src/obsidian/augmentations/Views/View.d.ts:29
Returns the icon name
Returns
string
Inherited from
getReaderModeContent()
getReaderModeContent():
Promise
<unknown
>
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:34
Returns
Promise
<unknown
>
getSideTooltipPlacement()
getSideTooltipPlacement():
undefined
|"left"
|"right"
Defined in: src/obsidian/augmentations/Views/View.d.ts:33
Returns the placement of the tooltip
Returns
undefined
| "left"
| "right"
Inherited from
ItemView
.getSideTooltipPlacement
getState()
Call Signature
getState():
Record
<string
,unknown
>
Defined in: obsidian.d.ts:4517
Returns
Record
<string
, unknown
>
Inherited from
Call Signature
getState():
object
Defined in: src/obsidian/augmentations/Views/View.d.ts:37
Returns the current state of the view
Returns
object
Inherited from
getViewType()
getViewType():
"browser"
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:38
Get the current view type
Returns
"browser"
Overrides
handleCopy()
handleCopy(
event
):void
Defined in: src/obsidian/augmentations/Views/View.d.ts:41
Handle copy event on metadata editor and serialize properties
Parameters
event
Returns
void
Inherited from
handleCut()
handleCut(
event
):void
Defined in: src/obsidian/augmentations/Views/View.d.ts:45
Handle cut event on metadata editor and serialize and remove properties
Parameters
event
Returns
void
Inherited from
handleDrop()
handleDrop(
event
,t
,n
):unknown
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:57
Parameters
event
t
unknown
n
unknown
Returns
unknown
Inherited from
handlePaste()
handlePaste(
event
):void
Defined in: src/obsidian/augmentations/Views/View.d.ts:49
Handle paste event of properties on metadata editor
Parameters
event
Returns
void
Inherited from
hideAll()
hideAll():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:40
Returns
void
instantiateWebView()
instantiateWebView():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:44
Setup the webview
Returns
void
load()
load():
void
Defined in: obsidian.d.ts:865
Load this component and its children
Returns
void
Inherited from
navigate()
navigate(
e
,t
):unknown
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:46
Parameters
e
unknown
t
unknown
Returns
unknown
onCheckboxClick()
onCheckboxClick(
e
,t
,n
):void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:48
Parameters
e
unknown
t
unknown
n
unknown
Returns
void
onClose()
onClose():
Promise
<void
>
Defined in: obsidian.d.ts:4509
Returns
Promise
<void
>
Inherited from
onExternalLinkClick()
onExternalLinkClick(
e
,t
,n
):void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:50
Parameters
e
unknown
t
unknown
n
unknown
Returns
void
onExternalLinkRightClick()
onExternalLinkRightClick(
e
,t
,n
):void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:52
Parameters
e
unknown
t
unknown
n
unknown
Returns
void
onFoldChange()
onFoldChange():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:54
Returns
void
onGroupChange()
onGroupChange():
void
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:59
Returns
void
Inherited from
onHeaderMenu()
onHeaderMenu(
e
):void
Defined in: src/obsidian/augmentations/Views/View.d.ts:51
Parameters
e
unknown
Returns
void
Inherited from
onInternalLinkClick()
onInternalLinkClick(
e
,t
,n
):void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:56
Parameters
e
unknown
t
unknown
n
unknown
Returns
void
onInternalLinkDrag()
onInternalLinkDrag(
e
,t
,n
):void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:58
Parameters
e
unknown
t
unknown
n
unknown
Returns
void
onInternalLinkMouseover()
onInternalLinkMouseover(
e
,t
,n
):void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:60
Parameters
e
unknown
t
unknown
n
unknown
Returns
void
onInternalLinkRightClick()
onInternalLinkRightClick(
e
,t
,n
):void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:62
Parameters
e
unknown
t
unknown
n
unknown
Returns
void
onload()
onload():
void
Defined in: obsidian.d.ts:871
Override this to load your component
Returns
void
Inherited from
onMoreOptions()
onMoreOptions(
event
):void
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:61
Parameters
event
Returns
void
Inherited from
onMoreOptionsMenu()
onMoreOptionsMenu(
e
):void
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:63
Parameters
e
unknown
Returns
void
Inherited from
onOpen()
onOpen():
Promise
<void
>
Defined in: obsidian.d.ts:4505
Returns
Promise
<void
>
Inherited from
onPaneMenu()
onPaneMenu(
menu
,source
):void
Defined in: obsidian.d.ts:4549
Populates the pane menu.
(Replaces the previously removed onHeaderMenu
and onMoreOptionsMenu
)
Parameters
menu
source
string
Returns
void
Inherited from
onReaderModeContextMenu()
onReaderModeContextMenu(
e
):void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:64
Parameters
e
unknown
Returns
void
onRenderComplete()
onRenderComplete():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:66
Returns
void
onResize()
onResize():
void
Defined in: obsidian.d.ts:4538
Called when the size of this view is changed.
Returns
void
Inherited from
onScroll()
onScroll():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:68
Returns
void
onTabMenu()
onTabMenu(
menu
):void
Defined in: src/obsidian/augmentations/Views/View.d.ts:56
Adds the menu items to the menu
Parameters
menu
the menu to fill
Returns
void
Inherited from
onTagClick()
onTagClick(
e
,t
,n
):void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:70
Parameters
e
unknown
t
unknown
n
unknown
Returns
void
onunload()
onunload():
void
Defined in: obsidian.d.ts:882
Override this to unload your component
Returns
void
Inherited from
open()
open(
parentEl
):Promise
<void
>
Defined in: src/obsidian/augmentations/Views/View.d.ts:61
Opens the view
Parameters
parentEl
The node the view get attached to
Returns
Promise
<void
>
Inherited from
postProcess()
postProcess(
e
,t
,n
):void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:72
Parameters
e
unknown
t
unknown
n
unknown
Returns
void
pushViewStackHistory()
pushViewStackHistory(
e
):void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:74
Parameters
e
unknown
Returns
void
register()
register(
cb
):void
Defined in: obsidian.d.ts:897
Registers a callback to be called when unloading
Parameters
cb
() => any
Returns
void
Inherited from
registerDomEvent()
Call Signature
registerDomEvent<
K
>(el
,type
,callback
,options
?):void
Defined in: obsidian.d.ts:907
Registers an DOM event to be detached when unloading
Type Parameters
• K extends keyof WindowEventMap
Parameters
el
type
K
callback
(this
, ev
) => any
options?
boolean
| AddEventListenerOptions
Returns
void
Inherited from
Call Signature
registerDomEvent<
K
>(el
,type
,callback
,options
?):void
Defined in: obsidian.d.ts:912
Registers an DOM event to be detached when unloading
Type Parameters
• K extends keyof DocumentEventMap
Parameters
el
type
K
callback
(this
, ev
) => any
options?
boolean
| AddEventListenerOptions
Returns
void
Inherited from
Call Signature
registerDomEvent<
K
>(el
,type
,callback
,options
?):void
Defined in: obsidian.d.ts:917
Registers an DOM event to be detached when unloading
Type Parameters
• K extends keyof HTMLElementEventMap
Parameters
el
type
K
callback
(this
, ev
) => any
options?
boolean
| AddEventListenerOptions
Returns
void
Inherited from
registerEvent()
registerEvent(
eventRef
):void
Defined in: obsidian.d.ts:902
Registers an event to be detached when unloading
Parameters
eventRef
Returns
void
Inherited from
registerInterval()
registerInterval(
id
):number
Defined in: obsidian.d.ts:924
Registers an interval (from setInterval) to be cancelled when unloading Use setInterval instead of setInterval to avoid TypeScript confusing between NodeJS vs Browser API
Parameters
id
number
Returns
number
Inherited from
registerScopeEvent()
registerScopeEvent(
keymapEventHandler
):void
Defined in: src/obsidian/augmentations/Components/Component.d.ts:19
Parameters
keymapEventHandler
Returns
void
Inherited from
removeChild()
removeChild<
T
>(component
):T
Defined in: obsidian.d.ts:892
Removes a child component, unloading it
Type Parameters
• T extends Component
Parameters
component
T
Returns
T
Inherited from
reportPageLoad()
reportPageLoad(
url
,title
,navigate
):void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:76
Parameters
url
string
title
string
navigate
unknown
Returns
void
saveAsMarkdown()
saveAsMarkdown():
Promise
<unknown
>
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:78
Returns
Promise
<unknown
>
selectFavicon()
selectFavicon(
e
):unknown
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:80
Parameters
e
unknown
Returns
unknown
setEphemeralState()
Call Signature
setEphemeralState(
state
):void
Defined in: obsidian.d.ts:4529
Parameters
state
unknown
Returns
void
Inherited from
Call Signature
setEphemeralState(
state
):void
Defined in: src/obsidian/augmentations/Views/View.d.ts:65
Set the ephemeral (non-persistent) state of the editor
Parameters
state
any
Returns
void
Inherited from
setFavicon()
setFavicon(
e
):unknown
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:82
Parameters
e
unknown
Returns
unknown
setState()
Call Signature
setState(
state
,result
):Promise
<void
>
Defined in: obsidian.d.ts:4521
Parameters
state
unknown
result
Returns
Promise
<void
>
Inherited from
Call Signature
setState(
state
,result
):Promise
<void
>
Defined in: src/obsidian/augmentations/Views/View.d.ts:73
Parameters
state
any
result
Returns
Promise
<void
>
Inherited from
showSearch()
showSearch():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:84
Returns
void
storeCurrentPageTitle()
storeCurrentPageTitle():
Promise
<unknown
>
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:88
Stores the title of the current webview
Returns
Promise
<unknown
>
toggleReaderMode()
toggleReaderMode():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:92
Toggles the reader mode
Returns
void
unload()
unload():
void
Defined in: obsidian.d.ts:876
Unload this component and its children
Returns
void
Inherited from
updateNavButtons()
updateNavButtons():
void
Defined in: src/obsidian/augmentations/Views/ItemView.d.ts:67
Updates the navigation buttons depending on the history
Returns
void
Inherited from
zoomIn()
zoomIn():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:96
Zoom in the webview
Returns
void
zoomOut()
zoomOut():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:100
Zoom out the webview
Returns
void
zoomReset()
zoomReset():
void
Defined in: src/obsidian/internals/InternalPlugins/Browser/BrowserView.d.ts:104
Resets the zoom factor of the webview
Returns
void