Repository navigation
Document Datagrid column style options - #3297
Open
RTorres1980 wants to merge 1 commit into
Open
RTorres1980 wants to merge 1 commit into
RTorres1980 wants to merge 1 commit into
Conversation
Add a reference page for the Datagrid's per-column `columns_config` keys: which keys each column type accepts, the fg_mode/bg_mode values and defaults per type, and the supported number_format and date_format options. Link it from SUMMARY.md and the FAQ entry that previously pointed only at types.ts. Refs perspective-dev#2253 Signed-off-by: Robert Torres <rob.a.torres@live.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #2253.
#2253 asks for reference documentation of the Datagrid plugin's configuration options. Today the FAQ points readers to
ColumnConfiginpackages/viewer-datagrid/src/ts/types.ts, and the color and datetime rules are only described inside the save/restore guide.This PR adds a Datagrid column styles page under the
perspective-viewerdocs that collects the per-columncolumns_configoptions in one place:fg_mode/bg_modevalues and defaults for numeric, string and date columns (fromNUMBER_FG_MODES,NUMBER_BG_MODES,STRING_MODES,DATETIME_MODESanddefault_fg_mode/default_bg_mode);number_formatoptions and their values (fromnumber_string_format.rs);date_formatpresets and per-part fields (fromdatetime_column_style.rs);save_restore.mdfor inheritance, migration and color-string grammar, rather than repeating them.It also adds the page to
SUMMARY.mdunderperspective-viewerand links it from the existing FAQ answer.Docs only, no code changes. The new page is formatted with Prettier 3 using the repo's
.prettierrc.json, and its anchor links match the existing headings. I haven't run the full build locally.AI assistance: I used Claude (an AI assistant) to draft this page from the source files listed above. I reviewed it and checked each option against the source before opening the PR.