WorkspaceSplit<T>
API reference uses a reviewed source snapshot. Source links open the published source; unverified line locations are omitted.
Defined in: workspace.svelte.ts:497
Extends
Section titled “Extends”WorkspaceParent<T>
Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”T extends EventMap<T> = EventMap<any>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WorkspaceSplit<
T>(type?):WorkspaceSplit<T>
Defined in: workspace.svelte.ts:504
Parameters
Section titled “Parameters”"vertical" | "horizontal" = "vertical"
Returns
Section titled “Returns”WorkspaceSplit<T>
Overrides
Section titled “Overrides”WorkspaceParent<T>.constructor
Properties
Section titled “Properties”_root:
WorkspaceItem<EventMap<T>> |undefined=undefined
Defined in: workspace.svelte.ts:308
Inherited from
Section titled “Inherited from”WorkspaceParent._root
children
Section titled “children”children: (
WorkspaceTabs|WorkspaceView)[]
Defined in: workspace.svelte.ts:501
id:
string
Defined in: workspace.svelte.ts:280
Inherited from
Section titled “Inherited from”WorkspaceParent.id
parent
Section titled “parent”parent:
WorkspaceParent
Defined in: workspace.svelte.ts:277
Inherited from
Section titled “Inherited from”WorkspaceParent.parent
sizes:
number[]
Defined in: workspace.svelte.ts:502
type:
"vertical"|"horizontal"
Defined in: workspace.svelte.ts:500
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get app():
App
Defined in: workspace.svelte.ts:304
Resolve the owning application before using the compatibility alias.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”WorkspaceParent.app
application
Section titled “application”Get Signature
Section titled “Get Signature”get application():
App|undefined
Defined in: workspace.svelte.ts:299
The application that owns this item, when it has been attached.
Returns
Section titled “Returns”App | undefined
Inherited from
Section titled “Inherited from”WorkspaceParent.application
topLeft
Section titled “topLeft”Get Signature
Section titled “Get Signature”get topLeft():
void|WorkspaceTabs
Defined in: workspace.svelte.ts:646
Returns
Section titled “Returns”void | WorkspaceTabs
topRight
Section titled “topRight”Get Signature
Section titled “Get Signature”get topRight():
WorkspaceTabs
Defined in: workspace.svelte.ts:650
Returns
Section titled “Returns”workspace
Section titled “workspace”Get Signature
Section titled “Get Signature”get workspace():
Workspace|undefined
Defined in: workspace.svelte.ts:294
The workspace that owns this item, when it has been attached.
Returns
Section titled “Returns”Workspace | undefined
Inherited from
Section titled “Inherited from”WorkspaceParent.workspace
Methods
Section titled “Methods”addChild()
Section titled “addChild()”addChild(
child,index?):void
Defined in: workspace.svelte.ts:556
Parameters
Section titled “Parameters”WorkspaceTabs | WorkspaceView
index?
Section titled “index?”number
Returns
Section titled “Returns”void
bindWorkspace()
Section titled “bindWorkspace()”bindWorkspace(
workspace):this
Defined in: workspace.svelte.ts:287
Bind a root workspace item to its owning workspace.
Parameters
Section titled “Parameters”workspace
Section titled “workspace”Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”WorkspaceParent.bindWorkspace
dispatch()
Section titled “dispatch()”dispatch<
T>(eventName, …args):boolean
Defined in: events.ts:105
Type Parameters
Section titled “Type Parameters”T extends string
Parameters
Section titled “Parameters”eventName
Section titled “eventName”T
…Parameters<EventListener<T, T>>
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”WorkspaceParent.dispatch
emit()
Section titled “emit()”emit<
T>(eventName, …args):boolean
Defined in: events.ts:98
Type Parameters
Section titled “Type Parameters”T extends string
Parameters
Section titled “Parameters”eventName
Section titled “eventName”T
…Parameters<EventListener<T, T>>
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”WorkspaceParent.emit
getRoot()
Section titled “getRoot()”getRoot():
WorkspaceItem
Defined in: workspace.svelte.ts:309
Returns
Section titled “Returns”WorkspaceItem
Inherited from
Section titled “Inherited from”WorkspaceParent.getRoot
iterateAllLeaves()
Section titled “iterateAllLeaves()”iterateAllLeaves<
T>(callback):void|T
Defined in: workspace.svelte.ts:604
Type Parameters
Section titled “Type Parameters”T = any
Parameters
Section titled “Parameters”callback
Section titled “callback”(leaf) => T
Returns
Section titled “Returns”void | T
iterateAllSplits()
Section titled “iterateAllSplits()”iterateAllSplits<
T>(callback):void|T
Defined in: workspace.svelte.ts:571
Type Parameters
Section titled “Type Parameters”T = any
Parameters
Section titled “Parameters”callback
Section titled “callback”(split) => T
Returns
Section titled “Returns”void | T
iterateAllTabs()
Section titled “iterateAllTabs()”iterateAllTabs<
T>(callback):void|T
Defined in: workspace.svelte.ts:588
Type Parameters
Section titled “Type Parameters”T = any
Parameters
Section titled “Parameters”callback
Section titled “callback”(tab) => T
Returns
Section titled “Returns”void | T
loadJson()
Section titled “loadJson()”loadJson(
layout,projectionItems?):Promise<void>
Defined in: workspace.svelte.ts:509
Parameters
Section titled “Parameters”layout
Section titled “layout”WorkspaceSplitJson
projectionItems?
Section titled “projectionItems?”WorkspaceProjectionItems
Returns
Section titled “Returns”Promise<void>
off<
T>(eventName,listener,context?,once?):void
Defined in: events.ts:78
Type Parameters
Section titled “Type Parameters”T extends string
Parameters
Section titled “Parameters”eventName
Section titled “eventName”T
listener
Section titled “listener”EventListener<T, T>
context?
Section titled “context?”any
boolean
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”WorkspaceParent.off
offref()
Section titled “offref()”offref<
T>(ref):void
Defined in: events.ts:87
Type Parameters
Section titled “Type Parameters”T extends string
Parameters
Section titled “Parameters”EventRef<T, T>
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”WorkspaceParent.offref
on<
T>(eventName,listener,context?):EventRef<T,T,any>
Defined in: events.ts:48
Type Parameters
Section titled “Type Parameters”T extends string
Parameters
Section titled “Parameters”eventName
Section titled “eventName”T
listener
Section titled “listener”EventListener<T, T>
context?
Section titled “context?”any
Returns
Section titled “Returns”EventRef<T, T, any>
Inherited from
Section titled “Inherited from”WorkspaceParent.on
once()
Section titled “once()”once<
T>(eventName,listener,context?):EventRef<T,T,any>
Defined in: events.ts:63
Type Parameters
Section titled “Type Parameters”T extends string
Parameters
Section titled “Parameters”eventName
Section titled “eventName”T
listener
Section titled “listener”EventListener<T, T>
context?
Section titled “context?”any
Returns
Section titled “Returns”EventRef<T, T, any>
Inherited from
Section titled “Inherited from”WorkspaceParent.once
onEmpty()
Section titled “onEmpty()”onEmpty():
void
Defined in: workspace.svelte.ts:613
Returns
Section titled “Returns”void
removeChild()
Section titled “removeChild()”removeChild(
index,softDelete?):WorkspaceTabs|WorkspaceView|undefined
Defined in: workspace.svelte.ts:617
Parameters
Section titled “Parameters”number | WorkspaceTabs | WorkspaceSplit<EventMap<T>>
softDelete?
Section titled “softDelete?”boolean = false
Returns
Section titled “Returns”WorkspaceTabs | WorkspaceView | undefined
toJson()
Section titled “toJson()”toJson():
WorkspaceSplitJson
Defined in: workspace.svelte.ts:546
Returns
Section titled “Returns”WorkspaceSplitJson
trigger()
Section titled “trigger()”trigger<
T>(eventName, …args):boolean
Defined in: events.ts:91
Type Parameters
Section titled “Type Parameters”T extends string
Parameters
Section titled “Parameters”eventName
Section titled “eventName”T
…Parameters<EventListener<T, T>>
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”WorkspaceParent.trigger
tryTrigger()
Section titled “tryTrigger()”tryTrigger<
T>(evt, …args):void
Defined in: events.ts:112
Type Parameters
Section titled “Type Parameters”T extends string
Parameters
Section titled “Parameters”EventRef<T, T>
…Parameters<EventListener<T, T>>
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”WorkspaceParent.tryTrigger