Skip to content

Implement actions for button in react export#298

Open
ngalan818 wants to merge 4 commits into
IBM:mainfrom
ngalan818:feature/react-export-action
Open

Implement actions for button in react export#298
ngalan818 wants to merge 4 commits into
IBM:mainfrom
ngalan818:feature/react-export-action

Conversation

@ngalan818
Copy link
Copy Markdown

Related Tickets & Documents

  • Related Issue #
  • Closes #

What type of PR is this? (check all that apply)

  • Feature
  • Bug Fix
  • Refactor
  • Documentation Update

Scope

This PR adds the features of changing visibility and disabled property of a button using another button in the react export code

Implementation

Parse the actions array in the JSON into setState statements in the react export code. Only works on button signals and slots for now.

Screenshots/Recordings/Diagrams:

N/A

How to test

Create a fragment with 2 or more buttons, add action interactions that controls disabled or visibility, observe the setState statements in the react export code. Optionally, run the export code in a code sandbox.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 15, 2024

Deploy Preview for carbon-components-builder ready!

Name Link
🔨 Latest commit b200305
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-builder/deploys/663928d93882e8000823107d
😎 Deploy Preview https://deploy-preview-298--carbon-components-builder.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Signed-off-by: Alan Ng <alan.ng@ibm.com>
Signed-off-by: Alan Ng <alan.ng@ibm.com>
@ngalan818 ngalan818 force-pushed the feature/react-export-action branch from 18ed114 to eed55ba Compare January 15, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants