Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
joint
dia
Link
Class Link
Hierarchy
Cell
Link
Index
Constructor methods
constructor
Properties
attributes
changed
cid
id
idAttribute
url
urlRoot
validationError
Methods
attr
bind
change
changedAttributes
clear
clone
defaults
destroy
disconnect
embed
escape
fetch
get
getEmbeddedCells
has
hasChanged
initialize
invert
isNew
isValid
keys
label
listenTo
listenToOnce
off
omit
on
once
pairs
parse
pick
previous
previousAttributes
remove
save
set
stopListening
sync
toBack
toFront
toJSON
trigger
unbind
unembed
unset
validate
values
Constructor methods
constructor
(
attributes
?:
any
, options
?:
any
)
:
Model
Parameters
attributes?:
any
optional
options?:
any
optional
Returns
Model
Properties
public
attributes
:
any
public
changed
:
Array<any>
public
cid
:
string
public
id
:
any
public
idAttribute
:
string
public
url
:
any
public
urlRoot
:
any
public
validationError
:
any
Methods
public
attr
(
attrs
:
any
)
:
Cell
Parameters
attrs:
any
Returns
Cell
public
bind
(
eventName
:
string
, callback
:
Function
, context
?:
any
)
:
any
Parameters
eventName:
string
callback:
Function
context?:
any
optional
Returns
any
public
change
(
)
:
any
Returns
any
public
changedAttributes
(
attributes
?:
any
)
:
Array<any>
Parameters
attributes?:
any
optional
Returns
Array<any>
public
clear
(
options
?:
Silenceable
)
:
any
Parameters
options?:
Silenceable
optional
Returns
any
public
clone
(
opt
?:
any
)
:
Model
Parameters
opt?:
any
optional
Returns
Model
public
defaults
(
)
:
IDefaults
Returns
IDefaults
public
destroy
(
options
?:
ModelDestroyOptions
)
:
any
Parameters
options?:
ModelDestroyOptions
optional
Returns
any
public
disconnect
(
)
:
Link
Returns
Link
public
embed
(
cell
:
Cell
)
:
any
Parameters
cell:
Cell
Returns
any
public
escape
(
attribute
:
string
)
:
string
Parameters
attribute:
string
Returns
string
public
fetch
(
options
?:
ModelFetchOptions
)
:
JQueryXHR
Parameters
options?:
ModelFetchOptions
optional
Returns
JQueryXHR
public
get
(
attributeName
:
string
)
:
any
Parameters
attributeName:
string
Returns
any
public
getEmbeddedCells
(
)
:
Cell
[]
Returns
Cell
[]
public
has
(
attribute
:
string
)
:
boolean
Parameters
attribute:
string
Returns
boolean
public
hasChanged
(
attribute
?:
string
)
:
boolean
Parameters
attribute?:
string
optional
Returns
boolean
public
initialize
(
attributes
?:
any
)
Parameters
attributes?:
any
optional
public
invert
(
)
:
any
Returns
any
public
isNew
(
)
:
boolean
Returns
boolean
public
isValid
(
options
?:
any
)
:
boolean
Parameters
options?:
any
optional
Returns
boolean
public
keys
(
)
:
Array<string>
Returns
Array<string>
public
label
(
idx
?:
number
, value
?:
any
)
:
any
Parameters
idx?:
number
optional
value?:
any
optional
Returns
any
public
listenTo
(
object
:
any
, events
:
string
, callback
:
Function
)
:
any
Parameters
object:
any
events:
string
callback:
Function
Returns
any
public
listenToOnce
(
object
:
any
, events
:
string
, callback
:
Function
)
:
any
Parameters
object:
any
events:
string
callback:
Function
Returns
any
public
off
(
eventName
?:
string
, callback
?:
Function
, context
?:
any
)
:
any
Parameters
eventName?:
string
optional
callback?:
Function
optional
context?:
any
optional
Returns
any
public
omit
(
keys
:
Array<string>
)
:
any
Parameters
keys:
Array<string>
Returns
any
public
omit
(
keys
?:
Array<string>
)
:
any
Parameters
keys?:
Array<string>
optional
Returns
any
public
on
(
eventName
:
string
, callback
?:
Function
, context
?:
any
)
:
any
Parameters
eventName:
string
callback?:
Function
optional
context?:
any
optional
Returns
any
public
once
(
events
:
string
, callback
:
Function
, context
?:
any
)
:
any
Parameters
events:
string
callback:
Function
context?:
any
optional
Returns
any
public
pairs
(
)
:
Array<any>
Returns
Array<any>
public
parse
(
response
:
any
, options
?:
any
)
:
any
Parameters
response:
any
options?:
any
optional
Returns
any
public
pick
(
keys
:
Array<string>
)
:
any
Parameters
keys:
Array<string>
Returns
any
public
pick
(
keys
?:
Array<string>
)
:
any
Parameters
keys?:
Array<string>
optional
Returns
any
public
previous
(
attribute
:
string
)
:
any
Parameters
attribute:
string
Returns
any
public
previousAttributes
(
)
:
Array<any>
Returns
Array<any>
public
remove
(
options
?:
any
)
:
any
Parameters
options?:
any
optional
Returns
any
public
save
(
attributes
?:
any
, options
?:
ModelSaveOptions
)
:
any
Parameters
attributes?:
any
optional
options?:
ModelSaveOptions
optional
Returns
any
public
set
(
attributeName
:
string
, value
:
any
, options
?:
ModelSetOptions
)
:
Model
Parameters
attributeName:
string
value:
any
options?:
ModelSetOptions
optional
Returns
Model
public
set
(
obj
:
any
, options
?:
ModelSetOptions
)
:
Model
Parameters
obj:
any
options?:
ModelSetOptions
optional
Returns
Model
public
stopListening
(
object
?:
any
, events
?:
string
, callback
?:
Function
)
:
any
Parameters
object?:
any
optional
events?:
string
optional
callback?:
Function
optional
Returns
any
public
sync
(
arg
?:
Array<any>
)
:
JQueryXHR
Parameters
arg?:
Array<any>
optional
Returns
JQueryXHR
public
toBack
(
)
:
any
Returns
any
public
toFront
(
)
:
any
Returns
any
public
toJSON
(
)
:
any
Returns
any
public
trigger
(
eventName
:
string
, args
?:
Array<any>
)
:
any
Parameters
eventName:
string
args?:
Array<any>
optional
Returns
any
public
unbind
(
eventName
?:
string
, callback
?:
Function
, context
?:
any
)
:
any
Parameters
eventName?:
string
optional
callback?:
Function
optional
context?:
any
optional
Returns
any
public
unembed
(
cell
:
Cell
)
:
any
Parameters
cell:
Cell
Returns
any
public
unset
(
attribute
:
string
, options
?:
Silenceable
)
:
Model
Parameters
attribute:
string
options?:
Silenceable
optional
Returns
Model
public
validate
(
attributes
:
any
, options
?:
any
)
:
any
Parameters
attributes:
any
options?:
any
optional
Returns
any
public
values
(
)
:
Array<any>
Returns
Array<any>
Globals
Backbone
backbone
joint
joint.dia
joint.shapes
joint.shapes.basic
joint.ui
joint.util
jquery
underscore
IDefaults
IElementSize
IOptions
Cell
CellView
Element
ElementView
Graph
Link
constructor
attributes
changed
cid
id
idAttribute
url
urlRoot
validationError
attr
bind
change
changedAttributes
clear
clone
defaults
destroy
disconnect
embed
escape
fetch
get
getEmbeddedCells
has
hasChanged
initialize
invert
isNew
isValid
keys
label
listenTo
listenToOnce
off
omit
on
once
pairs
parse
pick
previous
previousAttributes
remove
save
set
stopListening
sync
toBack
toFront
toJSON
trigger
unbind
unembed
unset
validate
values
LinkView
Paper