genome_spy.ValueParameter¶
- class genome_spy.ValueParameter(bind=Undefined, description=Undefined, name=Undefined, persist=Undefined, push=Undefined, transition=Undefined, value=Undefined, **kwds)View on GitHub¶
Bases:
GenomeSpySchemaGenerated wrapper for
ValueParameter.Methods
bind([value, autocomplete, debounce, ...])Return a copy with
bindupdated.copy(*[, deep])Return a copy with optional keyword updates.
description(value)Return a copy with
descriptionupdated.name(value)Return a copy with
nameupdated.persist(value)Return a copy with
persistupdated.push(value)Return a copy with
pushupdated.Return this class schema with referenced properties merged in.
to_dict(*[, validate])Serialize this schema wrapper to a JSON-compatible dictionary.
to_json(*[, validate])Serialize this schema wrapper to formatted JSON.
transition([value, epsilon, halfLife, type])Return a copy with
transitionupdated.validate(instance)Validate an instance against this wrapper's schema.
value(value)Return a copy with
valueupdated.- bind(value=Undefined, /, *, autocomplete=Undefined, debounce=Undefined, description=Undefined, input=Undefined, labels=Undefined, max=Undefined, min=Undefined, name=Undefined, options=Undefined, placeholder=Undefined, step=Undefined)View on GitHub¶
Return a copy with
bindupdated.- Parameters:
autocomplete (str) – A hint for form autofill. See the HTML autocomplete attribute for additional information.
debounce (float) – Schema-defined
debounceproperty.description (str) – Schema-defined
descriptionproperty.input (Literal['checkbox'] | Literal['radio', 'select'] | Literal['range'] | Literal['text', 'number', 'color']) – Schema-defined
inputproperty.labels (Sequence[str]) – An array of label strings to represent the
optionsvalues. If unspecified, theoptionsvalue will be coerced to a string and used as the label.max (float) – Sets the maximum slider value. Defaults to the larger of the signal value and
100.min (float) – Sets the minimum slider value. Defaults to the smaller of the signal value and
0.name (str) – Schema-defined
nameproperty.options (Sequence[Any]) – An array of options to select from.
placeholder (str) – Text that appears in the form control when it has no value set.
step (float) – Sets the minimum slider increment. If undefined, the step size will be automatically determined based on the
minandmaxvalues.
- description(value)View on GitHub¶
Return a copy with
descriptionupdated.
- name(value)View on GitHub¶
Return a copy with
nameupdated.
- persist(value)View on GitHub¶
Return a copy with
persistupdated.
- push(value)View on GitHub¶
Return a copy with
pushupdated.
- transition(value=Undefined, /, *, epsilon=Undefined, halfLife=Undefined, type=Undefined)View on GitHub¶
Return a copy with
transitionupdated.
- value(value)View on GitHub¶
Return a copy with
valueupdated.
- copy(*, deep=True, **kwds)View on GitHub¶
Return a copy with optional keyword updates.
- classmethod resolve_references()View on GitHub¶
Return this class schema with referenced properties merged in.
- to_dict(*, validate=True)View on GitHub¶
Serialize this schema wrapper to a JSON-compatible dictionary.
- to_json(*, validate=True)View on GitHub¶
Serialize this schema wrapper to formatted JSON.
- classmethod validate(instance)View on GitHub¶
Validate an instance against this wrapper’s schema.