vaadin / serverside-elements

Vaadin add-on that makes it easy to use Web Components or any HTML elements from Vaadin Framework
https://vaadin.com/addon/elements-add-on
Apache License 2.0
14 stars 12 forks source link

Add a really simple abstract component to be used as base class for component wrappers #5

Closed mstahv closed 7 years ago

mstahv commented 7 years ago

Currently there is no good base class if you want to wrap an element as a real Vaadin component. AbstractJavaScriptComponent good, but that "dies" without a JS file with a dummy implementation. CssLayout is one option, but that pollutes the server side API with component container APIs.

It might be a good idea to add such to this library.

cc: @alejandro-du

Legioth commented 7 years ago

This component could optimally support having any element type, instead of the hardcoded <div> that you'd get from AbstractJavaScriptComponent or CssLayout.

mstahv commented 7 years ago

That would be a plus, but even just a static div based empty "root component" would help a lot.