mixin

Links

@Js
const mixin Links : Dict

Links models the incoming links of a component. It is a dict keyed by the toSlot name.

methods add

Add given link (if not duplicate) and return new instance of Links

isLinked

Return if given toSlot has one or more links

listOn

List all the links with the given toSlot name

eachLink

Iterate all the links as flat list

remove

Remove given link (if found) and return new instance of Links

add abstract This add(Str toSlot, Link link)

Add given link (if not duplicate) and return new instance of Links

eachLink abstract Void eachLink(|Str,Link| f)

Iterate all the links as flat list

isLinked abstract Bool isLinked(Str toSlot)

Return if given toSlot has one or more links

listOn abstract Link[] listOn(Str toSlot)

List all the links with the given toSlot name

remove abstract This remove(Str toSlot, Link link)

Remove given link (if found) and return new instance of Links

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST