JSOptionBuilder

abstract
class JSOptionBuilder[T <: Object, B <: JSOptionBuilder[T, _]](copy: OptMap => B) extends JSOptionSetter[T, B]

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.

Type Params
B

This class. (It is probably possible to eliminate this declaration, but I haven't figured it out yet.)

T

A placeholder facade trait -- usually just a declaration of a trait that inherits from js.Object.

Value Params
copy

The chaining constructor. You don't usually need to worry about this explicitly, just follow the documented patterns.

Companion
object
trait JSOptionSetter[T, B]
class Object
trait Matchable
class Any

Value members

Concrete methods

def _result: T

Extract the built-up options, in a form suitable for passing into a typical facade.

Extract the built-up options, in a form suitable for passing into a typical facade.

override
def toString: String
Definition Classes
Any