vitmalina / w2ui

UI widgets for modern apps. Data table, forms, toolbars, sidebar, tabs, tooltips, popups. All under 120kb (gzipped).

Home Page:http://w2ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use w2ui-2.0 in react?

yang5355 opened this issue · comments

Snipaste_2023-12-25_15-30-28
image

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

please help me

Error message:
image

@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.