https://github.com/dashpilot/svelte-pagebuilder
Similar to my Vue Pagebuilder, this is a pagebuilder for Svelte
https://github.com/dashpilot/svelte-pagebuilder
Last synced: 1 day ago
JSON representation
Similar to my Vue Pagebuilder, this is a pagebuilder for Svelte
- Host: GitHub
- URL: https://github.com/dashpilot/svelte-pagebuilder
- Owner: dashpilot
- Created: 2022-12-30T01:11:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-14T23:23:44.000Z (almost 3 years ago)
- Last Synced: 2025-03-04T08:45:16.102Z (over 1 year ago)
- Language: Svelte
- Homepage: svelte-pagebuilder.vercel.app
- Size: 2.16 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Svelte Pagebuilder
The editing has been designed to be completely separate from from the SPA on the page, and should work with any modern javascript framework (Svelte/Vue/React/Alpinejs, etc.). The communication between the editor and the SPA happens in two ways:
1. SPA to Editor (on page load)
On page load, the Editor loads the component configuration from `window.components`.
2. Editor to SPA (whenever the data changes)
Whenever the data changes, the editor calls the `window.relay(data)` function. You spa can hook into this function to update the page data.