Skip to content

Commit

Permalink
ADD-MINOR: description is used for tooltipping the component
Browse files Browse the repository at this point in the history
  • Loading branch information
9and3 committed Feb 7, 2024
1 parent ac07855 commit fc88595
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions componentize_cpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def create_ghuser_component(source, target, version=None, prefix=None):
root.SetString("Name", prefix + data["name"])
root.SetString("NickName", data["nickname"])
root.SetString("Description", data.get("description", ""))
root.SetString("ToolTip", data.get("description", ""))
root.SetInt32("Exposure", data.get("exposure", EXPOSURE["default"]))
root.SetString("Category", data["category"])
root.SetString("SubCategory", data["subcategory"])
Expand Down Expand Up @@ -280,6 +281,7 @@ def create_ghuser_component(source, target, version=None, prefix=None):
pi_chunk.SetString("NickName", pi.get("nickname") or pi["name"])
pi_chunk.SetString("Description", pi.get("description"))
pi_chunk.SetBoolean("Optional", pi.get("optional", True))
pi_chunk.SetString("ToolTip", pi.get("description", ""))
pi_chunk.SetBoolean("AllowTreeAccess", pi.get("allowTreeAccess", True))
pi_chunk.SetBoolean("ShowTypeHints", pi.get("showTypeHints", True))
pi_chunk.SetInt32(
Expand Down Expand Up @@ -307,6 +309,7 @@ def create_ghuser_component(source, target, version=None, prefix=None):
po_chunk.SetString("NickName", po.get("nickname") or po["name"])
po_chunk.SetString("Description", po.get("description"))
po_chunk.SetBoolean("Optional", po.get("optional", False))
po_chunk.SetString("ToolTip", po.get("description", ""))
po_chunk.SetInt32("SourceCount", po.get("sourceCount", 0))
po_chunk.SetGuid("InstanceGuid", output_instance_guid)
po_chunk.SetBoolean("ReverseData", po.get("reverse", False))
Expand Down

0 comments on commit fc88595

Please sign in to comment.