BindingUtil
Table of contents
Public class
Signature
abstract class BindingUtil<
Binding extends TLUnknownBinding = TLUnknownBinding,
> {}
References
Source
packages/editor/src/lib/editor/bindings/BindingUtil.ts
Constructor
Public constructor
Constructs a new instance of the BindingUtil
class
Parameters
Name | Description |
---|---|
|
|
References
Properties
editor
Public property
Signature
editor: Editor
References
migrations
Public static property
Signature
static migrations?: TLPropsMigrations
References
props
Public static property
Signature
static props?: RecordProps<TLUnknownBinding>
References
type
Public static property
The type of the binding util, which should match the binding's type.
Signature
static type: string
Methods
getDefaultProps()
Public method
Get the default props for a binding.
Signature
abstract getDefaultProps(): Partial<Binding['props']>
onAfterChange()
Public method
Signature
onAfterChange?(options: BindingOnChangeOptions<Binding>): void
Parameters
Name | Description |
---|---|
|
|
Returns
void
References
onAfterChangeFromShape()
Public method
Signature
onAfterChangeFromShape?(options: BindingOnShapeChangeOptions<Binding>): void
Parameters
Name | Description |
---|---|
|
|
Returns
void
References
onAfterChangeToShape()
Public method
Signature
onAfterChangeToShape?(options: BindingOnShapeChangeOptions<Binding>): void
Parameters
Name | Description |
---|---|
|
|
Returns
void
References
onAfterCreate()
Public method
Signature
onAfterCreate?(options: BindingOnCreateOptions<Binding>): void
Parameters
Name | Description |
---|---|
|
|
Returns
void
References
onAfterDelete()
Public method
Signature
onAfterDelete?(options: BindingOnDeleteOptions<Binding>): void
Parameters
Name | Description |
---|---|
|
|
Returns
void
References
onBeforeChange()
Public method
Signature
onBeforeChange?(options: BindingOnChangeOptions<Binding>): Binding | void
Parameters
Name | Description |
---|---|
|
|
Returns
Binding | void
References
onBeforeCreate()
Public method
Signature
onBeforeCreate?(options: BindingOnCreateOptions<Binding>): Binding | void
Parameters
Name | Description |
---|---|
|
|
Returns
Binding | void
References
onBeforeDelete()
Public method
Signature
onBeforeDelete?(options: BindingOnDeleteOptions<Binding>): void
Parameters
Name | Description |
---|---|
|
|
Returns
void
References
onBeforeDeleteFromShape()
Public method
Signature
onBeforeDeleteFromShape?(options: BindingOnShapeDeleteOptions<Binding>): void
Parameters
Name | Description |
---|---|
|
|
Returns
void
References
onBeforeDeleteToShape()
Public method
Signature
onBeforeDeleteToShape?(options: BindingOnShapeDeleteOptions<Binding>): void
Parameters
Name | Description |
---|---|
|
|
Returns
void
References