Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs(View): improve documentation of View.emptyView
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Jul 24, 2025
commit 1d1cca424b1807a4ef2c43df02a1562ff987773f
12 changes: 10 additions & 2 deletions lib/navigation/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ interface ViewData {
emptyTitle?: string
/** Translated description of the empty view */
emptyCaption?: string
/**
* Custom implementation of the empty view.
* If set and no content is found for the current view,
* then this method is called with the container element
* where to render your empty view implementation.
*
* @param div - The container element to render into
*/
emptyView?: (div: HTMLDivElement) => void

/**
* Method return the content of the provided path
Expand Down Expand Up @@ -63,8 +72,7 @@ interface ViewData {
* by default always included
*/
columns?: Column[]
/** The empty view element to render your empty content into */
emptyView?: (div: HTMLDivElement) => void

/** The parent unique ID */
parent?: string
/** This view is sticky (sent at the bottom) */
Expand Down