Field formatter: Add settings to enable / disable features

Created on 13 August 2025, 3 days ago

Problem/Motivation

The field display, e.g. with bootstrap table is great, but there should be field formatter settings to enable / disable them:

  • Search
  • Show / hide columns
  • Pager (steps) / show all

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Anybody
  • 🇩🇪Germany Anybody Porta Westfalica
  • 🇩🇪Germany lrwebks Porta Westfalica
  • 🇫🇷France lazzyvn paris

    You can select another library or without bootstrap table use your own theme.

  • 🇩🇪Germany Anybody Porta Westfalica

    @lazzyvn what's going on here?

    We tried helping to improve the module for the Drupal community with helpful settings (and we'd invest the time on our sponsorship). Why don't you like that?

    Did you read the issue as criticism? It's just a feature request?

    (Still it's fair for you as maintainer to decide, but that really looks sad)

  • 🇩🇪Germany Anybody Porta Westfalica

    PS: If you think that the settings are too specific for the Bootstrap table and for that reason shouldn't be added, that's fine. But then we should at least document a way to disable them cleanly, for example setting data attributes etc.

    Also we could make these additional settings dependent on the selected formatter using Form #states API!
    https://www.lullabot.com/articles/form-api-states

  • 🇩🇪Germany Anybody Porta Westfalica
  • 🇫🇷France lazzyvn paris

    Oh, it's up to you, I have no opinion on adding options. I thought about it at first, but here's the technical difficulty. There are really a lot of options for Bootstrap-tables / Datatable. When you make form configuration for module formatter, you can't create a variable with multiple options. These options depend on the type of table libraries you want to display.
    But If you don't need the functionality of bootstrap tables or datatables don't active option, the default Drupal table will be displayed by default.
    And after years and many sites using it, this is the first time I see asking this. I think in reality, not many people want to use this functionality.
    Could you help rewrite the document in readme.md?

Production build 0.71.5 2024