タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

githubとlibraryとWebComponentsに関するefclのブックマーク (1)

  • Catalyst

    <hello-world> <input data-target="hello-world.name" type="text"> <button data-action="click:hello-world#greet"> Greet </button> <span data-target="hello-world.output"> </span> </hello-world> import { controller, target } from "@github/catalyst" @controller class HelloWorldElement extends HTMLElement { @target name: HTMLElement @target output: HTMLElement greet() { this.output.textContent = `Hello,

    efcl
    efcl 2021/01/16
    GitHubのWeb Componentsライブラリ。 Custom Elementの登録、Stimulusインスパイアな`data-action`属性を使ったイベントリスナー、Custom Element内からHTMLの要素を紐付けるクエリ機能を持っている。
  • 1