Skip to content

Commit fc88595

Browse files
committed
ADD-MINOR: description is used for tooltipping the component
1 parent ac07855 commit fc88595

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

componentize_cpy.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ def create_ghuser_component(source, target, version=None, prefix=None):
235235
root.SetString("Name", prefix + data["name"])
236236
root.SetString("NickName", data["nickname"])
237237
root.SetString("Description", data.get("description", ""))
238+
root.SetString("ToolTip", data.get("description", ""))
238239
root.SetInt32("Exposure", data.get("exposure", EXPOSURE["default"]))
239240
root.SetString("Category", data["category"])
240241
root.SetString("SubCategory", data["subcategory"])
@@ -280,6 +281,7 @@ def create_ghuser_component(source, target, version=None, prefix=None):
280281
pi_chunk.SetString("NickName", pi.get("nickname") or pi["name"])
281282
pi_chunk.SetString("Description", pi.get("description"))
282283
pi_chunk.SetBoolean("Optional", pi.get("optional", True))
284+
pi_chunk.SetString("ToolTip", pi.get("description", ""))
283285
pi_chunk.SetBoolean("AllowTreeAccess", pi.get("allowTreeAccess", True))
284286
pi_chunk.SetBoolean("ShowTypeHints", pi.get("showTypeHints", True))
285287
pi_chunk.SetInt32(
@@ -307,6 +309,7 @@ def create_ghuser_component(source, target, version=None, prefix=None):
307309
po_chunk.SetString("NickName", po.get("nickname") or po["name"])
308310
po_chunk.SetString("Description", po.get("description"))
309311
po_chunk.SetBoolean("Optional", po.get("optional", False))
312+
po_chunk.SetString("ToolTip", po.get("description", ""))
310313
po_chunk.SetInt32("SourceCount", po.get("sourceCount", 0))
311314
po_chunk.SetGuid("InstanceGuid", output_instance_guid)
312315
po_chunk.SetBoolean("ReverseData", po.get("reverse", False))

0 commit comments

Comments
 (0)