-
Notifications
You must be signed in to change notification settings - Fork 206
Chore/add framework examples #410
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
Conversation
There was a problem hiding this 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 adds a framework demo switcher to the Formeo demo page, enabling users to see integration examples for different JavaScript frameworks (Vanilla JS, Angular, and React). Key changes include:
- Added a new
clear()method to the FormeoEditor class for resetting the editor state - Implemented a framework loader system with dynamic switching between Vanilla JS, Angular, and React demos
- Created framework-specific demo files with code examples and interactive implementations
- Restructured the demo HTML to support framework switching with URL query parameter support
- Added comprehensive documentation for framework integrations and the new clear method
Reviewed Changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/lib/js/editor.js | Added clear() method to FormeoEditor for resetting editor state |
| src/demo/sass/demo.scss | Styling updates for framework demos, header layout, and code examples |
| src/demo/js/options/enhanced-config-example.js | Prefixed unused parameter with underscore |
| src/demo/js/index.js | Simplified to only import framework-loader and styles |
| src/demo/js/frameworks/vanilla.js | Vanilla JS demo moved to framework-specific file |
| src/demo/js/frameworks/react.js | Complete React integration demo with hooks and examples |
| src/demo/js/frameworks/angular.js | Complete Angular integration demo with modern patterns |
| src/demo/js/frameworks/README.md | Documentation for framework demo structure |
| src/demo/js/framework-loader.js | Core loader for switching between framework demos |
| src/demo/js/actionButtons.js | Moved renderFormWrap query selector inside function |
| src/demo/index.html | Added framework selector and container for dynamic content |
| docs/react-integration.md | React integration guide documentation |
| docs/editor/editor-clear-method.md | Documentation for new clear() method |
| docs/editor/component-events.md | Documentation for component event system |
| docs/angular-integration.md | Angular integration explanation and alternatives |
| docs/angular-integration-example/README.md | Placeholder for Angular example project |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
|
🎉 This PR is included in version 4.1.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.