BoolField

viz.macros.BoolField
class BoolField(path: List[String])

Accessor for boolean fields in a Vega/Vega-Lite spec.

Provides type-safe modification of boolean-valued JSON fields.

Value parameters

path

The JSON path to this field as a list of field names

Attributes

Example
spec.build(_.autosize := false)
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def +=(j: Json): SpecMod

Deep merge JSON into this field. For boolean fields, this effectively replaces the value.

Deep merge JSON into this field. For boolean fields, this effectively replaces the value.

Attributes

def +=(obj: JsonObject): SpecMod

Deep merge a JSON object into this field

Deep merge a JSON object into this field

Attributes

def :=(b: Boolean): SpecMod

Replace the field value with a boolean

Replace the field value with a boolean

Attributes

def :=(j: Json): SpecMod

Replace the field value with arbitrary JSON

Replace the field value with arbitrary JSON

Attributes

def apply(b: Boolean): SpecMod
def apply(j: Json): SpecMod