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

Check if object is a Skate Element and Get Properties #1571

Open
jogibear9988 opened this issue Oct 27, 2019 · 1 comment
Open

Check if object is a Skate Element and Get Properties #1571

jogibear9988 opened this issue Oct 27, 2019 · 1 comment

Comments

@jogibear9988
Copy link

Hello,

I'm working on a WebComponents Designer Framework, for this I need to know if a "object" is a skate component and read out the properties. Is this possible? Is it possible without needing a reference to skate form my Editor Framework?

see
https://github.com/node-projects/web-component-designer/tree/master/src/elements/propertyHandlers

@treshugart
Copy link
Member

I've been away for a bit, so sorry for the late reply.

Do you need to distinguish between different frameworks, or just need to know if it's a web component? The link you gave 404'd.

If the latter, that's fairly straight forward by just duck-typing a custom element method. For the former, you could do a similar thing with methods that Skate puts onto a custom element, but that could yield mixed results. You should probably reference the base class like it seems you're probably doing.

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

2 participants