Struct vega_lite_4::SelectionConfigBuilder
source · pub struct SelectionConfigBuilder { /* private fields */ }
Expand description
Builder for SelectionConfig
.
Implementations§
source§impl SelectionConfigBuilder
impl SelectionConfigBuilder
sourcepub fn interval<VALUE: Into<IntervalSelectionConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn interval<VALUE: Into<IntervalSelectionConfig>>( &mut self, value: VALUE ) -> &mut Self
The default definition for an
interval
selection. All
properties and transformations for an interval selection definition (except type
) may
be specified here.
For instance, setting interval
to {"translate": false}
disables the ability to move
interval selections by default.
sourcepub fn multi<VALUE: Into<MultiSelectionConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn multi<VALUE: Into<MultiSelectionConfig>>( &mut self, value: VALUE ) -> &mut Self
The default definition for a
multi
selection. All
properties and transformations for a multi selection definition (except type
) may be
specified here.
For instance, setting multi
to {"toggle": "event.altKey"}
adds additional values to
multi selections when clicking with the alt-key pressed by default.
sourcepub fn single<VALUE: Into<SingleSelectionConfig>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn single<VALUE: Into<SingleSelectionConfig>>( &mut self, value: VALUE ) -> &mut Self
The default definition for a
single
selection. All
properties and transformations for a single selection definition (except type
) may be
specified here.
For instance, setting single
to {"on": "dblclick"}
populates single selections on
double-click by default.
sourcepub fn build(&self) -> Result<SelectionConfig, SelectionConfigBuilderError>
pub fn build(&self) -> Result<SelectionConfig, SelectionConfigBuilderError>
Trait Implementations§
source§impl Clone for SelectionConfigBuilder
impl Clone for SelectionConfigBuilder
source§fn clone(&self) -> SelectionConfigBuilder
fn clone(&self) -> SelectionConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more