✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Updatemenus/button list support in Dash

I am looking for functionality similar to the Update Several Data Attributes example on https://plotly.com/python/custom-buttons/ Essentially a family of buttons that work in the same manner as a family of radioItems with one selected and highlighted. Is something like this available via Dash? https://dash.plotly.com/dash-html-components/button shows no similar functionality and the only other reference I could find was this question asked in 2017 at https://github.com/plotly/dash/issues/123. I know I can use radioItems or a Dropdown, but a family of buttons would be more visually appealing.

Hi @marketemp, a workaround for this is to use dcc.Tabs and to use the value of the tab as you would do for the value of RadioItems, ie you treat the tabs as buttons. The documentation on tabs is available here.

thanks, also tried tabs and forgot to include it in my other options (radioItems or Dropdown). I definitely want buttons and until then am actually settling for radioItems as best option of the three for me based on sizing and having all the options visible.

I’m curious to know why you don’t want to use Tabs? They share a lot of css attributes with buttons so there is room for a lot of customization of how the tabs look like.

On my first try, the tabs were way too big (I know that can be customized). I have a tight little family of options so buttons or radioItems unify them together better than tabs which are more feasible if that were my only option. I’ll definitely give it another try but a button list is what I am looking for.

another one I figured out myself. this is available using https://dash-bootstrap-components.opensource.faculty.ai/