Sha256: bc113261ce8272fda8aaaeddb08a7985b32dd4c36ccc883c89532b3dc4d12408

Contents?: true

Size: 267 Bytes

Versions: 9

Compression:

Stored size: 267 Bytes

Contents

import { Controller } from '@hotwired/stimulus'

export default class extends Controller {
  static targets = ['output']

  typed(event) {
    this.text = event.currentTarget.value
    this.render()
  }

  render() {
    this.outputTarget.innerText = this.text
  }
}

Version data entries

9 entries across 7 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 lib/generators/solidus_admin/component/templates/component.js.tt
solidus_admin-0.3.1 lib/generators/solidus_admin/component/templates/component.js.tt
solidus_admin-0.3.0 lib/generators/solidus_admin/component/templates/component.js.tt
solidus_admin-0.2.0 lib/generators/solidus_admin/component/templates/component.js.tt
solidus_admin-0.1.0 lib/generators/solidus_admin/component/templates/component.js.tt
solidus_admin-0.0.2 lib/generators/solidus_admin/component/templates/component.js.tt
solidus_admin-0.0.2 app/components/solidus_admin/ui/panel/component.js
solidus_admin-0.0.1 app/components/solidus_admin/ui/panel/component.js
solidus_admin-0.0.1 lib/generators/solidus_admin/component/templates/component.js.tt