{"repo":"mfcc64/wc-helpers","free":true,"listed":false,"github":"https://github.com/mfcc64/wc-helpers","clone":"git clone https://github.com/mfcc64/wc-helpers.git","description":"Helpers for Web Components","language":"JavaScript","stars":65,"topics":["custom-elements","web-components"],"license":"MIT","category":"ui-components","readme_excerpt":"wc-helpers v2 wc-helpers v2 help you create your custom elements. Install NPM CDN API Anonymous Anonymous mixin creates anonymous custom element that is registered automatically when constructed or when toString method is called. It won't be anonymous if manual registration is called before construction or toString . anonymousBase An optional static field symbol for Anonymous mixin as basename for anonymous name. Example: Shadow Shadow mixin creates automatic shadowRoot . shadowOptions An optional static field symbol for Shadow mixin as options for attachShadow . Note that the default is { mode: \"open\" } . shadowHTML An optional static field symbol for Shadow mixin as HTML template for shadowRoot . It must be html literal or HTMLTemplateElement instance. shadowCSS An optional static field symbol for Shadow mixin as array of CSS stylesheet for shadowRoot . It must be an array of css literal or CSSStyleSheet instance. shadowRoot A symbol for Shadow mixin instance to access shadowRoot . It is useful when mode is closed. shadowElements A symbol for Shadow mixin instance as object to access elements that have id attribute. Example: State A simple state management class. new State(initialValue, optionalName) Constuctor for State instance. State.value instance field Current value of State instance. State.name instance field Optional name for State instance. State.prototype.set(value) Set current value of state and call listeners. State.prototype.cset(value) Set current value of stat","default_branch":null,"files":null,"tree":[],"storefront":"/r/mfcc64","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mfcc64/wc-helpers/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}