vitmalina / w2ui

UI widgets for modern apps. Data table, forms, toolbars, sidebar, tabs, tooltips, popups. All under 120kb (gzipped).
http://w2ui.com
MIT License
2.63k stars 735 forks source link

How to use w2ui-2.0 in react? #2480

Closed yang5355 closed 6 months ago

yang5355 commented 7 months ago

Snipaste_2023-12-25_15-30-28 image

How do I write this component if I want to return it?

please help me

yang5355 commented 7 months ago

Error message: image

vitmalina commented 6 months ago

@yang5355, w2ui is framework agnostic, and was not developed for any particular framework. Latest version has no dependencies. But to use it with React, you will have to write your own React component that implements grid (and other controls). I have done it in the past for Vue and Lit, but it has been a while ago. Basic approach is to write component that receives grid config file as json attribute and from there on, grid would do the rest. Good luck.