holoviz / panel

Panel: The powerful data exploration & web app framework for Python
https://panel.holoviz.org
BSD 3-Clause "New" or "Revised" License
4.78k stars 518 forks source link

`pn.widgets.RadioButtonGroup` has no name and description #7387

Open ambrustorok opened 1 month ago

ambrustorok commented 1 month ago

When you create a widget such as a FloatInput you can define a name and a description. This results in a tooltip and a title for the widget.

pn.widgets.FloatInput( 
    name="Number input",
    step=1e-2,
    start=0.0,
    end=1.0,
    value=0.3,
    description="My description"
)

image

The same behavior does not apply to all widgets, such as for RadioButtonGroup. Notice how there is no name/title, nor description.

pn.widgets.RadioButtonGroup(
    name='My widget', 
    options=[1, 2, 3], 
    button_type='success',
    value=1,
    description="My description"
)

image

ambrustorok commented 1 month ago

This is partially mentioned in #1313. The missing name is, but now the missing description.