Overview
Field là gì?
Field là thành phần để config cho element. Mỗi field có thể là 1 app react riêng biệt.
Chạy dev
Để dev field ta cần chạy dev-fields
và dev-elements
. Mở 2 terminal từ thư mục turbo
- Terminal 1
cd apps/dev-fields
pnpm run dev
- Terminal 2
cd apps/dev-elements
pnpm run dev
tip
dev-elements
sẽ đăng ký element vào editor giúp hiển thị custom field
Chú ý
Cách đặt tên
Đặt tên chữ thường, ngăn cách bằng dấu _. Ví dụ: children_id, attributes_custom