ui/sidebar_state.svelte.ts

Declarations
#

3 declarations

view source

sidebar_state_context
#

SidebarState
#

ui/sidebar_state.svelte.ts view source

constructor

type new (options?: SidebarStateOptions | undefined): SidebarState

options?
type SidebarStateOptions | undefined
optional

toggle_sidebar

type (value?: boolean): void

value
type boolean
default !this.show_sidebar
returns void

activate

Activates the sidebar, showing it and enabling the toggle. Returns a cleanup function that deactivates.

type (): () => void

returns () => void

SidebarStateOptions
#

Imported by
#