Skip to content

Support text/content align in st.dataframe #12106

@jhanggi

Description

@jhanggi

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

It would be great if we could specify text-align in the pandas styler and have that control left/right/center alignment of the DataFrame cell.

Why?

We want to have explicit control over the text alignment in our data table cells

How?

It looks like Glide Grid supports alignment control through the contentAlign property

Additional Context

#6706 seems related, but not 100% this is what they're asking for

#6958 could be semi-related but appears to be more about headers. I'm looking for the actual data cells.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.column_configRelated to column configuration functionalityfeature:st.data_editorRelated to the `st.data_editor` widgetfeature:st.dataframeRelated to the `st.dataframe` elementtype:enhancementRequests for feature enhancements or new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions