package jsext
Utilities for working with Scala.js.
- Alphabetic
- By Inheritance
- jsext
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract class JSOptionBuilder[T <: Object, B <: JSOptionBuilder[T, _]] extends JSOptionSetter[T, B]
Helper class for defining strongly-typed "options" classes to pass into Scala.js facades.
Helper class for defining strongly-typed "options" classes to pass into Scala.js facades. This approach is particularly helpful for jQuery-based facades, which often take very complex options objects, with large numbers of polymorphic fields.
- T
A placeholder facade trait -- usually just a declaration of a trait that inherits from js.Object.
- B
This class. (It is probably possible to eliminate this declaration, but I haven't figured it out yet.)
- trait JSOptionSetter[T <: Object, B <: JSOptionBuilder[T, _]] extends AnyRef
Trait enabling hierarchical option structures where options can be inherited from other classes.
Trait enabling hierarchical option structures where options can be inherited from other classes.
- T
See JSOptionBuilder
- B
See JSOptionBuilder
- type OptMap = Map[String, Any]
A map of option values, which JSOptionBuilder builds up.
- class RichFuture[T] extends AnyRef
Useful enhancements to Future.
Value Members
- implicit def future2Wrapper[T](fut: Future[T]): RichFuture[T]
- val noOpts: Map[String, Any]
An initial empty map of option values, which you use to begin building up the options object.
- object JSOptionBuilder