Skip to content

Conversation

@markallenramirez
Copy link
Contributor

No description provided.

@markallenramirez markallenramirez self-assigned this Dec 1, 2025
Copilot AI review requested due to automatic review settings December 1, 2025 06:35
@markallenramirez markallenramirez changed the title Diagram Demos - Fix itemExpr implementation Diagram Demos - Fix typeExpr implementation Dec 1, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the itemTypeExpr implementation across all framework variants (jQuery, Vue, React, ReactJs, Angular) of the Diagram "CustomShapesWithTemplatesWithEditing" demo. The change converts the function from a simple getter (return 'employee') to a bidirectional getter/setter pattern that can both read and write the type property of diagram nodes.

Key Changes:

  • Added two-parameter signature (obj, value) to support both getting and setting operations
  • Added setter logic to assign value to obj.type when a value is provided
  • Returns null for setter operations and 'employee' for getter operations

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
apps/demos/Demos/Diagram/CustomShapesWithTemplatesWithEditing/jQuery/index.js Updated typeExpr from simple getter to getter/setter with conditional logic
apps/demos/Demos/Diagram/CustomShapesWithTemplatesWithEditing/Vue/App.vue Updated itemTypeExpr arrow function from simple getter to getter/setter
apps/demos/Demos/Diagram/CustomShapesWithTemplatesWithEditing/ReactJs/App.js Updated itemTypeExpr function from simple getter to getter/setter
apps/demos/Demos/Diagram/CustomShapesWithTemplatesWithEditing/React/App.tsx Updated itemTypeExpr function from simple getter to getter/setter
apps/demos/Demos/Diagram/CustomShapesWithTemplatesWithEditing/Angular/app/app.component.ts Updated itemTypeExpr method from simple getter to getter/setter

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant