Node
@blockslides/core / Node
Class: Node<Options, Storage>
Defined in: blockslides/packages/core/src/Node.ts:348
Extends
Extendable<Options,Storage,NodeConfig<Options,Storage>>
Type Parameters
Options
Options = any
Storage
Storage = any
Constructors
Constructor
new Node<
Options,Storage>(config):Node<Options,Storage>
Defined in: blockslides/packages/core/src/Extendable.ts:370
Parameters
config
Partial<Config> = {}
Returns
Node<Options, Storage>
Inherited from
Properties
parent
parent:
Extendable<any,any,ExtensionConfig<any,any> |NodeConfig<any,any> |MarkConfig<any,any>> |null=null
Defined in: blockslides/packages/core/src/Extendable.ts:360
Inherited from
child
child:
Extendable<any,any,ExtensionConfig<any,any> |NodeConfig<any,any> |MarkConfig<any,any>> |null=null
Defined in: blockslides/packages/core/src/Extendable.ts:362
Inherited from
name
name:
string=""
Defined in: blockslides/packages/core/src/Extendable.ts:364
Inherited from
config
config:
NodeConfig
Defined in: blockslides/packages/core/src/Extendable.ts:366
Inherited from
type
type:
string="node"
Defined in: blockslides/packages/core/src/Node.ts:353
Overrides
Accessors
options
Get Signature
get options():
Options
Defined in: blockslides/packages/core/src/Extendable.ts:379
Returns
Options
Inherited from
storage
Get Signature
get storage():
Readonly<Storage>
Defined in: blockslides/packages/core/src/Extendable.ts:389
Returns
Readonly<Storage>
Inherited from
Methods
create()
staticcreate<O,S>(config):Node<O,S>
Defined in: blockslides/packages/core/src/Node.ts:359
Create a new Node instance
Type Parameters
O
O = any
S
S = any
Parameters
config
Node configuration object or a function that returns a configuration object
Partial<NodeConfig<O, S>> | () => Partial<NodeConfig<O, S>>
Returns
Node<O, S>
configure()
configure(
options?):Node<Options,Storage>
Defined in: blockslides/packages/core/src/Node.ts:367
Parameters
options?
Partial<Options>
Returns
Node<Options, Storage>
Overrides
extend()
extend<
ExtendedOptions,ExtendedStorage,ExtendedConfig>(extendedConfig?):Node<ExtendedOptions,ExtendedStorage>
Defined in: blockslides/packages/core/src/Node.ts:371
Type Parameters
ExtendedOptions
ExtendedOptions = Options
ExtendedStorage
ExtendedStorage = Storage
ExtendedConfig
ExtendedConfig = NodeConfig<ExtendedOptions, ExtendedStorage>
Parameters
extendedConfig?
() => Partial<ExtendedConfig> | Partial<ExtendedConfig> & ThisType<{ name: string; options: ExtendedOptions; storage: ExtendedStorage; editor: SlideEditor; type: NodeType; }>
Returns
Node<ExtendedOptions, ExtendedStorage>