Hello, everybody,
I just looked at your VueJS components - great thing so far!
However, there is one question I would like to ask:
Will it be possible to use the "slot" feature of VueJS in a future version?
In your examples, HTML content is bound using "props" for the dialog header, for example. For this purpose HTML is assembled as a string in the data() method, which seems to me a little like in the year 2000.
Here some sample code from the documentation:
Template with prop-bindings:
<ejs-dialog
id='dialog'
ref="templatedialog"
:header='header'
:target='target'
:height='height'
:width='width'
:footerTemplate='footerTemplate'
:showCloseIcon='true'
:animationSettings='animationSettings'
:content='content'
:open="dlgOpen"
:close="dlgClose">
ejs-dialog>
Data-Method:...
This approach makes it difficult to include your own components in the header, for example. Vue provides a "slot" feature that allows you to insert HTML or other Vue components directly.
https://vuejs.org/v2/guide/components-slots.html
This would greatly improve the possible uses.
Instead of the data() method, the following code could be used directly in the template, which significantly increases readability and reusability.
Template with slots:
<ejs-dialog
id='dialog'
ref="templatedialog"
:target='target'
:height='height'
:width='width'
:showCloseIcon='true'
:animationSettings='animationSettings'
:open="dlgOpen"
:close="dlgClose">
My Title
Footer
ejs-dialog>