jasalt.dev Blog About
  • Datastar attribute plugin for signal value translation

    Extending on the data-text attribute with user defined output value mapping using vanilla Javascript.

    <div data-signals-search.mode="'Music'">
      <button data-on-click="$search.mode = 'Music'">
        Music
      </button>
      <button data-on-click="$search.mode = 'SFX'">
        SFX
      </button>
    </div>

    Oct 13, 2025

© 2025 Jarkko Saltiola
Subscribe to RSS Follow Astro on Mastodon Follow @jasalt_ on Twitter Go to @jasalt GitHub Go to @jasalt Codeberg Codeberg