Closed michaelspiss closed 8 months ago
Instead of passing a generic Element/Link type to CellViewGeneric this provides an optional generic to pass the model type. It would be used like the following:
Element
Link
CellViewGeneric
interface CustomElementAttributes extends dia.Element.Attributes { custom_attribute: string, } class CustomElement extends dia.Element<CustomElementAttributes> { // ... } class CustomElementView extends dia.ElementView<CustomElement> { // ... }
Default behaviour is the current behaviour. The change is fully backwards compatible.
any
get()
Description
Instead of passing a generic
Element
/Link
type toCellViewGeneric
this provides an optional generic to pass the model type. It would be used like the following:Default behaviour is the current behaviour. The change is fully backwards compatible.
Motivation and Context
any
get()