lovasoa / SQLpage

SQL-only webapp builder, empowering data analysts to build websites and applications quickly
https://sql.ophir.dev
MIT License
883 stars 64 forks source link

A low level component to create a dedicated DOM area #255

Closed olivierauverlot closed 1 month ago

olivierauverlot commented 4 months ago

A low level component to create a dedicated DOM area to dynamically add, modify or delete elements. To this, you can use Vanilla JavaScript or using dedicated framework as JQuery. The container component is built from a DIV element. An identifier is mandatory to access the container content with the method getElementById() for example. This component is useful for inserting the result of an AJAX request in the page.

olivierauverlot commented 4 months ago

Are you sure? It's a current usage to implement this type of component in a web application. Adding this component avoid to reinvent the wheel for each project. At a semantic and structural levels, it's a good thing to clearly identify a component dedicated to this task. I think that it's better to propose a prepared solution rather than forcing the user to tinker with the text component.