Skip to content

[Feature] Add column_type_formatters_detail#999

Draft
maxim-f1 wants to merge 8 commits intosmithyhq:mainfrom
maxim-f1:column-type-formatters-detail
Draft

[Feature] Add column_type_formatters_detail#999
maxim-f1 wants to merge 8 commits intosmithyhq:mainfrom
maxim-f1:column-type-formatters-detail

Conversation

@maxim-f1
Copy link
Copy Markdown
Contributor

@maxim-f1 maxim-f1 commented Feb 6, 2026

A new column_type_formatters_detail field has been added to ModelView.

  1. This field follows the same principle as column_type_formatters, with the sole difference that it is only applied on the details page.

  2. If column_type_formatters_detail is not set, the details page will fall back to using formatting from column_type_formatters.

  3. Several additional built-in formatters have been introduced (the default column_type_formatters remains unchanged).

  4. Now, when a parent class is used as the key for column_type_formatters or column_type_formatters_detail, all its child classes will also be formatted accordingly.

  5. If both a child and its parent are specified, the child's formatter takes precedence.

New formatters

1. StrEnum Formatter

Adds a tooltip displaying the list of available enum values.

List:

str_enum_title_list

Details:

str_enum_title_details

2. Copy String Formatter

Adds a copy-to-clipboard button for any string field content.

List:

copy_list

Details:

copy_details_1 copy_details_2

3. date or datetime Formatter

Adds a tooltip with the precise timestamp and displays the date in a human-readable format.

List:

datetime_list

Details:

datetime_details

maxim-f1 added 8 commits December 21, 2025 12:33
@mmzeynalli
Copy link
Copy Markdown
Member

mmzeynalli commented Apr 4, 2026

@maxim-f1 any updates on this one? Shall we keep it open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants