Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for composition #24

Open
goulashify opened this issue Oct 25, 2019 · 2 comments
Open

Example for composition #24

goulashify opened this issue Oct 25, 2019 · 2 comments

Comments

@goulashify
Copy link

goulashify commented Oct 25, 2019

Hi Przemyslaw,

I looked in src but saw code only for dom nodes, are Components out of scope?
In case not, could you put a small example which shows composition please?

Ex:

<!-- This is in the root. -->
<u>
    <special-list-item label="thing" />
    <special-list-item label="thing2" />
    <special-list-item label="thing3" />
</u>

<!-- special-list-item would be defined here -->

Thanks,
-Dani

@przemyslawjanpietrzak
Copy link
Owner

Hi,

Right now you can not use custom components, instead of that you have to render a function that returns some element.

Hoverer API for creating custom elements will be next in next minor version. I just finished shadow dom support and in weekend I'll start work on that.

@josdejong
Copy link

Any news on support for Components?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants