Class: VueFlowApp ​
Global Vue Flow App
Stores all store instances and provides access to them
Holds global config that is passed to all store instances
Provides hooks for plugins to access the store
Table of contents ​
Constructors ​
Properties ​
Methods ​
Constructors ​
constructor ​
• new VueFlowApp()
Properties ​
config ​
• config: ConfigFactory
Used by each store instance that is created as default values for store
currentId ​
• currentId: number
= 0
flows ​
• flows: Map
<string
, VueFlowStore
>
hooks ​
• Private
hooks: PluginHooks
instance ​
â–ª Static
instance: VueFlowApp
Methods ​
create ​
â–¸ create(id
, initialOptions?
): VueFlowStore
Parameters ​
Name | Type |
---|---|
id | string |
initialOptions? | FlowProps |
Returns ​
get ​
â–¸ get(id
): undefined
| VueFlowStore
Parameters ​
Name | Type |
---|---|
id | string |
Returns ​
undefined
| VueFlowStore
getId ​
â–¸ getId(): string
Returns ​
string
remove ​
â–¸ remove(id
): boolean
Parameters ​
Name | Type |
---|---|
id | string |
Returns ​
boolean
set ​
â–¸ set(id
, flow
): Map
<string
, VueFlowStore
>
Parameters ​
Name | Type |
---|---|
id | string |
flow | VueFlowStore |
Returns ​
Map
<string
, VueFlowStore
>
setConfig ​
â–¸ setConfig(options
): VueFlowApp
Set global config factory function
Parameters ​
Name | Type |
---|---|
options | ConfigFactory |
Returns ​
use ​
â–¸ use(plugin
): VueFlowApp
Helper to install plugin
Parameters ​
Name | Type |
---|---|
plugin | Plugin |
Returns ​
getInstance ​
â–¸ Static
getInstance(): VueFlowApp