Skip to content

daq slider does not accept label during instantiation, does during callback #196

@robajr

Description

@robajr

Error when trying to set label in definition:

daq.Slider(id='slider-name', value=0, min=0, max=100000, size=150, persistence=True, persistence_type='session', label="Investment $0"),

TypeError: The dash_daq.Slider component (version 0.6.0) with the ID "slider-name" received an unexpected keyword argument: label
Allowed arguments: className, color, disabled, dots, fullSize, handleLabel, id, included, labelPosition, marks, max, min, persisted_props, persistence, persistence_type, size, step, style, targets, theme, updatemode, value, vertical

Works when setting via callback:

	@dash_app.callback(Output('slider-name', 'label'),
                       Input('slider-name', 'value'),
              	       prevent_initial_call=True
	)
	def update_output(value):
		return f"${round(value,0)}"

labelPosition exists as a valid argument, but label does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions