Desenvolvido com base nos conceitos de DOM fantasma (Shadow DOM) e dos componentes web reutilizáveis (Web Components), que são, simplificadamente, trechos de código HTML, CSS e JavaScript completamente isolados em uma classe do JavaScript, a qual é instanciada, ação que renderiza o componente, quando uma tag HTML, cujo nome é correspondente à assinatura feita no método "define" do objeto customElements do JavaScript, é colocada no arquivo HTML; o componente em questão consiste em uma classificação por estrelas completamente funcional e que é renderizada a partir da tag "star-rating".
-
Notifications
You must be signed in to change notification settings - Fork 0
A reusable Vanilla JavaScript component, developed using the concepts of Shadow DOM and Web Components, which consists in a Star Rating
License
trybrito/star-rating-with-web-components
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A reusable Vanilla JavaScript component, developed using the concepts of Shadow DOM and Web Components, which consists in a Star Rating