Skip to content

Ability to customize search placeholder in DataTable (like Combobox) #428

@jdluiswise

Description

@jdluiswise

What happened?

Ability to customize search placeholder in DataTable (like Combobox)

Description

Hi team,

I’d like to use search=True in the DataTable component, but also customize the default search placeholder text (currently "Filter").

At the moment, I couldn’t find anything in the documentation indicating that this is configurable, so it seems this feature might not be supported yet.

For reference, the Combobox component already supports customizing the search placeholder here:
https://prefab.prefect.io/docs/components/combobox#search-placeholder


Question

Is there currently a way to customize the search placeholder in DataTable, or could this be considered as a feature request for future support?


Thanks!

Example Code

DataTable(
                    columns=prefab_columns,
                    rows=rows,
                    search={True},
                    searchPlaceholder="Buscar contactos...", ## Missing property
                    paginated=len(rows) > 10,
                    pageSize=10,
                )

Version Information

prefab-ui == 0.18.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement to existing functionality or new capabilities.pythonRelated to the Python SDK: components, actions, serialization.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions