- Issue created by @Anybody
- 🇮🇳India abhishek@kumar
Recommended Approach
// Suggested data structure for field configuration $field_definition->setSetting('table_display', [ 'collapsible' => TRUE, 'default_state' => 'collapsed', // or 'expanded' ]);
- 🇫🇷France lazzyvn paris
it already exists you convert to bootstrap 5 table or datatable it is available
- 🇩🇪Germany Anybody Porta Westfalica
Nice, thank you @lazzyvn - we'll have a deeper look at that and update the status here accordingly!
Maybe a screenshot or description of the feature on the module page would be nice?
- 🇩🇪Germany Grevil
@lazzyvn could you go in depth on how to actually accomplish this?
I tried downloading and enabling https://www.drupal.org/project/bootstrap_table → , but I still seem to not be able to change the table looks:
- 🇩🇪Germany Grevil
Ah, I see. That is not really the requirement @anybody and I have in mind. I think the nuxt example @anybody gave might be a bit misleading.
We basically want to have a quick way, to edit paragraph values inside the widget, without scrolling endlessly (for paragraphs with a lot of fields). So the thought was, to have the table displayed like in the formatter output and be able to edit each paragraph through unfolding each row, showing the desired paragraph widget form(or in the case of the nuxt example a json, which would be less prefereable).For now, it would be enough, to simply support field groups. I will create a seperate issue for that, but we should keep this issue open.
- 🇩🇪Germany Grevil
Created an issue for an easier approach here: 📌 Allow the table widget to display field groups as a dedicated column Active .