mirror of
https://github.com/pdfme/pdfme.git
synced 2026-04-18 21:19:10 -04:00
ca541dfd38068872d080329e89ef620a50e355ca
labelmake-ui
labelmake's template design & code generator tool has been cut out as a UI library.
That is labelmake-ui.
Check example
You can check and edit mininal example.
npm install -g serve
serve -s dist
Try editing the fetchTemplate and saveTemplate functions in dist/index.html
API
Library namespace is LabelmakeEditor.
LabelmakeEditor has init function.
const init: (domContainer: HTMLElement, fetchTemplate: () => Promise<Template>, saveTemplate: (template: Template) => Promise<Template>, customHeader?: React.ComponentType<EditorHeaderProp> | undefined) => void
This function takes four arguments.
- domContainer: The HTML element to attach
- fetchTemplate: Function to fetch the template when the editor is initialized.
- saveTemplate: Callback function called when the editor is saved.
- customHeader(option): Allows you to customize the UI in the red box below.
Setup
node 15.x, npm 7.x
npm i
Develop
npm run develop
Build
npm run build
Storybook
npm run storybook
Description
Languages
TypeScript
98.9%
JavaScript
1%

