question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add documentation how to use the custom element in other projects

See original GitHub issue

@karol-f Hello, maybe I am just dumb, but I didnt get the cutom element working in another project. There are questions wich are still unanswered:

  1. whats the best way to setup a custom element in a singe project?

vue init webpack

and then put the component inside the src folder or how?

  1. how to build the custom element that it is ready to use in other projects?

  2. after 2, if I installed the element with npm, how to import it or is the <my-element> - tag enough?

sorry if my question is at the wrong pace but I read the whole readme and locked at the demo page…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:26 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
BennyAlexcommented, Aug 9, 2017

in html, attributes must use a hypen instead of camelCase or? so useSpectrumPicker -> use-spectrum-picker

1reaction
karol-fcommented, Aug 3, 2017

@BennyAlex BTW we have Github profile photo probably taken in the same place - what a coincidence 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using custom elements - Web Components | MDN
Customized built-in elements inherit from basic HTML elements. To create one of these, you have to specify which element they extend (as implied ......
Read more >
Custom Element Best Practices - web.dev
Custom elements let you construct your own HTML tags. This checklist covers best practices to help you build high quality elements.
Read more >
Getting Started - Custom Elements Manifest
Support for other web component libraries can be done via custom plugins, feel free to create your own for your favourite libraries. Documenting...
Read more >
Document your elements - Polymer Project
You can provide API docs for Polymer custom elements by writing documentation comments in your source files. Using the iron-component-pages element, ...
Read more >
Custom elements - The Modern JavaScript Tutorial
Custom elements · Autonomous custom elements – “all-new” elements, extending the abstract HTMLElement class. · Customized built-in elements – ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found