-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update StandardTable to allow easy ways to reduce text size #621
Conversation
### defaultCellRenderer This can be used to override default text renderer for the whole table. Column cellRenderer will still override this. Since this is global for the table, and not local to a column, the type of itemValue can not be known. It should use `label` as source of text instead. If omitted, TextCell is used as usual. ### defaultTextSize This config specifies the text size to be used by the default TextCell component. If omitted, "normal" is used.
Size Change: 0 B Total Size: 352 kB ℹ️ View Unchanged
|
}) { | ||
return ( | ||
<Indent overflow={"hidden"}> | ||
<Text className={styles.textCell} title={label}> | ||
<Text className={styles.textCell} title={label} size={size} color={color}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or wait. It is always supposed to be custom content on how to display the editable cell?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renderCell already has full control over how to render the cell.
But yes, createStandardEditableTextCell should allow textSize as well.
I have added a commit.
defaultCellRenderer
This can be used to override default text renderer for the whole table.
Column cellRenderer will still override this. Since this is global for the table, and not local to a column,
the type of itemValue can not be known. It should use
label
as source of text instead.If omitted, TextCell is used as usual.
defaultTextSize
This config specifies the text size to be used by the default TextCell component.
If omitted, "normal" is used.
Version
Published prerelease version:
v19.0.0-next.16
Changelog
💥 Breaking Change
@stenajs-webui/core
,@stenajs-webui/elements
,@stenajs-webui/panels
🐛 Bug Fix
@stenajs-webui/grid
@stenajs-webui/elements
,@stenajs-webui/filter
,@stenajs-webui/modal
,@stenajs-webui/panels
@stenajs-webui/elements
,@stenajs-webui/panels
@stenajs-webui/filter
,@stenajs-webui/modal
@stenajs-webui/panels
@stenajs-webui/elements
,@stenajs-webui/theme
@stenajs-webui/elements
,@stenajs-webui/grid-export
,@stenajs-webui/panels
@stenajs-webui/forms
,@stenajs-webui/panels
,@stenajs-webui/theme
@stenajs-webui/core
,@stenajs-webui/elements
,@stenajs-webui/forms
,@stenajs-webui/panels
,@stenajs-webui/theme
@stenajs-webui/elements
@stenajs-webui/calendar
,@stenajs-webui/elements
,@stenajs-webui/filter
,@stenajs-webui/forms
,@stenajs-webui/grid-export
,@stenajs-webui/grid
,@stenajs-webui/panels
,@stenajs-webui/theme
@stenajs-webui/core
,@stenajs-webui/elements
,@stenajs-webui/filter
,@stenajs-webui/modal
,@stenajs-webui/panels
,@stenajs-webui/theme
@stenajs-webui/core
,@stenajs-webui/elements
,@stenajs-webui/panels
,@stenajs-webui/theme
@stenajs-webui/theme
@stenajs-webui/filter
@stenajs-webui/elements
,@stenajs-webui/panels
,@stenajs-webui/theme
,@stenajs-webui/tooltip
@stenajs-webui/elements
,@stenajs-webui/modal
,@stenajs-webui/panels
next
Authors: 4