dev:eg-grid:styling
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dev:eg-grid:styling [2024/04/05 12:05] – created sleary | dev:eg-grid:styling [2024/07/17 15:16] (current) – removing link to bug proposal, since this is in 3.13+ sleary | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Grid column styling ====== | ====== Grid column styling ====== | ||
- | |||
- | **Note: this is based on the proposed eg-grid table rewrite; see [[https:// | ||
All cells (including headers) have a set of class names derived from the IDL field name, path, and datatype. This will allow us to write very precisely targeted styles for specific columns. | All cells (including headers) have a set of class names derived from the IDL field name, path, and datatype. This will allow us to write very precisely targeted styles for specific columns. | ||
Line 11: | Line 9: | ||
Numeric data types (int, float, money) and any IDL field name ending in -count are aligned to the right. You may override the default alignment for any column using the new buttons in the Manage Columns dialog, or reset to the default alignment using the X icon there. (This may be especially useful for dates, if you are using a numeric format with two characters for month and day.) The row counters remain left-aligned. | Numeric data types (int, float, money) and any IDL field name ending in -count are aligned to the right. You may override the default alignment for any column using the new buttons in the Manage Columns dialog, or reset to the default alignment using the X icon there. (This may be especially useful for dates, if you are using a numeric format with two characters for month and day.) The row counters remain left-aligned. | ||
- | Numeric columns, dates, IDs, and barcodes | + | Numeric columns, dates, IDs, and barcodes |
===== Barcodes ===== | ===== Barcodes ===== | ||
Line 20: | Line 18: | ||
Email addresses and URLs are prevented from showing hyphens when the text wraps ([[https:// | Email addresses and URLs are prevented from showing hyphens when the text wraps ([[https:// | ||
+ | |||
+ | ===== Datatypes ===== | ||
+ | |||
+ | When the datatype itself is listed in the grid, as in Server Administration > Org Unit Setting Types, it is styled with a monospace font. | ||
===== People' | ===== People' | ||
Line 25: | Line 27: | ||
While we might want to set widths for people’s names, we use “name” in the IDL to refer to many things other than humans, so we will have to comb through the fields and identify the specific paths that refer to people. | While we might want to set widths for people’s names, we use “name” in the IDL to refer to many things other than humans, so we will have to comb through the fields and identify the specific paths that refer to people. | ||
+ | ====== Formatting wish list ====== | ||
+ | What other columns need formatting adjustments? |
dev/eg-grid/styling.1712333100.txt.gz · Last modified: 2024/04/05 12:05 by sleary