altair.BindRadioSelect#
- class altair.BindRadioSelect(input=Undefined, options=Undefined, debounce=Undefined, element=Undefined, labels=Undefined, name=Undefined, **kwds)#
BindRadioSelect 模式包装器。
- 参数:
- inputLiteral[‘radio’, ‘select’]
- optionsSequence[Any]
一个可供选择的选项数组。
- debouncefloat
如果已定义,则将事件处理延迟到自上次事件触发以来经过指定的毫秒数之后。
- elementstr,
Element
一个可选的 CSS 选择器字符串,指示应将输入元素添加到哪个父元素。默认情况下,所有输入元素都添加在 Vega 视图的父容器内。
- labelsSequence[str]
一个标签字符串数组,用于表示
options
的值。如果未指定,options
值将被强制转换为字符串并用作标签。- namestr
默认情况下,信号名称用于标记输入元素。可以使用此
name
属性来指定绑定信号的自定义标签。
- __init__(input=Undefined, options=Undefined, debounce=Undefined, element=Undefined, labels=Undefined, name=Undefined, **kwds)#
方法
__init__
([input, options, debounce, ...])copy
([deep, ignore])返回对象的副本。
from_dict
(dct[, validate])从字典表示形式构造类。
from_json
(json_string[, validate])从有效的 JSON 字符串实例化对象。
resolve_references
([schema])在此对象的模式或根模式的上下文中解析引用。
to_dict
([validate, ignore, context])返回对象的字典表示形式。
to_json
([validate, indent, sort_keys, ...])将此对象的 JSON 表示形式作为字符串发出。
validate
(instance[, schema])在根模式的上下文中,根据类模式验证实例。
validate_property
(name, value[, schema])在根模式的上下文中,根据属性模式验证属性。