Reference
Native flag element
import { … } from "@johnmorrisdotca/hata/element";
3941.6 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
defineFlag | function | Register <hata-flag>, once. |
FLAG_ELEMENT_ATTRIBUTES | constant | The attributes <hata-flag> reads. |
FLAG_ELEMENT_NAME | constant | The name the element is registered under. |
FlagElementEventDetail | type | What hata-load and hata-error carry in detail: the code as asked, and for an error why nothing was drawn. |
HataFlagElement | type | What <hata-flag> adds to an ordinary element. |