Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement actions for button in react export #298

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ngalan818
Copy link

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.

Copy link

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>
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.

None yet

3 participants