Links
@Js
const mixin Links : Dict
Links models the incoming links of a component. It is a dict keyed by the toSlot name.
Add given link (if not duplicate) and return new instance of Links
Return if given toSlot has one or more links
List all the links with the given toSlot name
Iterate all the links as flat list
Remove given link (if found) and return new instance of Links
abstract This add(Str toSlot, Link link)
Add given link (if not duplicate) and return new instance of Links
abstract Void eachLink(|Str,Link| f)
Iterate all the links as flat list
abstract Bool isLinked(Str toSlot)
Return if given toSlot has one or more links
abstract Link[] listOn(Str toSlot)
List all the links with the given toSlot name
abstract This remove(Str toSlot, Link link)
Remove given link (if found) and return new instance of Links