-
Notifications
You must be signed in to change notification settings - Fork 31
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
Text cell with help text in grid #1286
Text cell with help text in grid #1286
Conversation
Hmm. A few comments on this one:
{
"cells": [
{ "textFrom": "myComponent" },
{ "component": "myComponent" }
]
} And such a configuration would fetch the texts (i.e.
|
Understood, thanks for the feedback @olemartinorg ! 👍🙏 |
+ labelFrom cell
…github.com/Altinn/app-frontend-react into 1230-grid-component-helptext-in-text-cells
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.
This looks great! 🚀 Some very minor and optional nitpicks in the comments.
SonarCloud Quality Gate failed. 0 Bugs 6.3% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Description
Two new configuration options have been introduced for grid cells:
text
prop, the current text cell now also supports thehelp
prop, which allows to include help text along with thetext
prop.labelFrom
with the corresponding component ID. In the referenced component, you can access thetitle
(which serves as the label for the component),description
, andhelp
to provide help text.Example 1:
Example 2:
Related Issue(s)
Verification/QA
Help text in grid cells altinn-studio-docs#1011
src/layout/layout.d.ts
andlayout.schema.v1.json
, and these are all backwards-compatiblekind/*
label to this PR for proper release notes grouping