class Inserter[-El <: Base] extends Modifier[El]
Inserter is a modifier that lets you insert child node(s) on mount. When used with onMountInsert, it "immediately" reserves an insertion spot and then on every mount it inserts the node(s) into the same spot.
Note: As a Modifier this is not idemponent, but overall it behaves as you would expect. See docs for more details.
Note: If you DO provide initialContext, its parentNode MUST always
be the same element that you apply this Modifier to.
- Alphabetic
- By Inheritance
- Inserter
- Modifier
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Inserter(initialContext: Option[InsertContext[El]], insertFn: (InsertContext[El], Owner) => Subscription)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(element: El): Unit
- Definition Classes
- Inserter → Modifier
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bind(element: El): DynamicSubscription
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withContext(context: InsertContext[El]): Inserter[El]
Call this to get a copy of Inserter with a context locked to a certain element.
Call this to get a copy of Inserter with a context locked to a certain element. We use this to "reserve a spot" for future nodes when a bind(c => inserter) modifier is initialized, as opposed to waiting until subscription is activated.
The arrangement is admittedly a bit weird, but is required to build a smooth end user API.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated