Adding titles to tabulator parameters in panel param

Regarding the “title” - this is more about what the Widget supports.
The param.Parameter and its subclasses like param.Dataframe actually do support .name and .label.

It’s just that some panel widgets do support showing a “Label”/“Title”/“Name”, other’s don’t. Looking through the widgets, there seem to be 3 buckets:

  1. those that have a Label & Value, and without the Label you don’t know what your’Re looking at (eg. FloatInput, IntInput, …)
  2. those where the Label/Title is actually the “value” (eg. Buttons)
  3. those without a Label/Name (eg. Tabulator, Player), …
    Although 3) would be nice to have some way to easily add a Title (and some strangely even have a .name attribute), I’m kindda ok, that they don’t. Mostly because it’s likely hard to agree on the default visuals (put it left, right, center, … ? how large the font ? … ). so you may end up having a superset of a Markdown+Layout+Widget to be flexible enough.

If you do use Tabulators (or widgets) in a certain way and combination often, it may be worth just to create your own custom-version and use that. The documentation gives some easy examples (Combine Existing Components — Panel v1.2.3)

1 Like