From 6932f327d4c8327cf1e2b00dd013280627a9a3c7 Mon Sep 17 00:00:00 2001 From: srikant Date: Wed, 4 Dec 2024 12:31:46 +0530 Subject: [PATCH 1/5] #2256 Add ability to display text description next to heading label Signed-off-by: srikant --- .../components/title-editor/title-editor.jsx | 40 +++++++++++++------ .../components/title-editor/title-editor.scss | 12 ++++++ 2 files changed, 39 insertions(+), 13 deletions(-) diff --git a/canvas_modules/common-canvas/src/common-properties/components/title-editor/title-editor.jsx b/canvas_modules/common-canvas/src/common-properties/components/title-editor/title-editor.jsx index 952a0b699c..96df21ac19 100644 --- a/canvas_modules/common-canvas/src/common-properties/components/title-editor/title-editor.jsx +++ b/canvas_modules/common-canvas/src/common-properties/components/title-editor/title-editor.jsx @@ -20,13 +20,16 @@ import { connect } from "react-redux"; import Isvg from "react-inlinesvg"; import { get } from "lodash"; import classNames from "classnames"; -import { Help, Edit, Close } from "@carbon/react/icons"; +import { Edit, Close } from "@carbon/react/icons"; import { TextInput, Button, Layer } from "@carbon/react"; import { setTitle } from "./../../actions"; import { MESSAGE_KEYS, CONDITION_MESSAGE_TYPE } from "./../../constants/constants"; import * as PropertyUtils from "./../../util/property-utils"; import ActionFactory from "../../actions/action-factory.js"; +import Tooltip from "../../../tooltip/tooltip.jsx"; +import Icon from "../../../icons/icon.jsx"; +import { CARBON_ICONS } from "./../../constants/constants"; class TitleEditor extends Component { @@ -66,6 +69,7 @@ class TitleEditor extends Component { this.props.help.data, this.props.controller.getAppData()); } + return { url: "https://www.google.com/", label: "Help" }; } textInputOnFocus() { this.setState({ focused: true }); @@ -136,19 +140,29 @@ class TitleEditor extends Component { iconDescription={propertiesTitleEditButtonLabel} hasIconOnly />); - + const obj = { + "id": "link_for_number", + "data": { + "something": "option data" + }, + "propertyId": { + "name": "number" + } + }; const helpButton = this.props.help - ? (