2021-12-08 12:28:08 +09:00
2021-08-27 22:55:38 +09:00
tmp
2021-08-23 18:44:24 +09:00
2021-09-13 22:34:54 +09:00
2021-12-08 12:28:08 +09:00
2021-12-08 12:28:08 +09:00
tmp
2021-08-23 18:44:24 +09:00
2021-09-13 22:34:54 +09:00
tmp
2021-08-23 18:44:24 +09:00
2021-12-08 12:28:08 +09:00
tmp
2021-08-25 00:09:58 +09:00
2021-11-28 17:31:58 +09:00
2021-11-28 17:31:58 +09:00
2021-11-28 20:59:10 +09:00
tmp
2021-08-23 18:44:24 +09:00
2021-12-08 12:28:08 +09:00

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

open http://localhost:5000/

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

open http://localhost:8080/

Build

npm run build

Storybook

npm run storybook
Description
No description provided
Readme 434 MiB
Languages
TypeScript 98.9%
JavaScript 1%