-
Notifications
You must be signed in to change notification settings - Fork 47
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
#2256 Add ability to display text description next to heading label #2263
base: main
Are you sure you want to change the base?
Conversation
… label Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Hi @nmgokhale I am trying to include below design for Properties Heading help button. |
"name": "number" | ||
} | ||
} | ||
} | ||
} |
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.
@nmgokhale Is it okay if the help object is updated like this in paramDef to fetch description and link ?
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.
I think we should be using https://github.com/elyra-ai/pipeline-schemas/blob/main/common-pipeline/operators/uihints-v3-schema.json#L23. I don't think we need to add another description object.
We'd need a config option though that would allow users to determine if descriptions are included or not.
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.
@matthoward366 I have updated PR to use description
. Could you please have a look and let me know if the usage is fine ? (few changes pending, such as updating description.link.propertyId
and description.default
, and I will make those updates soon.). I have also included a config option headingDesc
to switch between help button and tooltip.
tip={this.props.help?.data?.description?.label} | ||
link={this.props.help?.data?.description?.link ? this.props.help?.data?.description?.link : null} | ||
tooltipLinkHandler={this.props.controller.getHandlers().tooltipLinkHandler} | ||
direction="bottom" |
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.
@nmgokhale here should tooltipLinkHandler
be adjusted to call helpClickHandler
?
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
…cription in paramDef Signed-off-by: srikant <[email protected]>
canvas_modules/common-canvas/src/common-properties/properties-main/properties-main.jsx
Outdated
Show resolved
Hide resolved
canvas_modules/harness/test_resources/parameterDefs/readonly_paramDef.json
Outdated
Show resolved
Hide resolved
Signed-off-by: srikant <[email protected]>
…esc doc Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
@nmgokhale can you take a first look? |
{ | ||
"parameter_ref": "showHeadingDesc", | ||
"label": { | ||
"default": "headingDesc" |
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.
Change the label to showHeadingDesc
. Label should match with the config option.
Fixes: #2256
Developer's Certificate of Origin 1.1