-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
955f519
commit 2e76fc5
Showing
4 changed files
with
24 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
## [Unreleased] | ||
- Reimplement command component | ||
|
||
## [0.0.82] - 2024-01-08 | ||
- Improve prose | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 0 additions & 79 deletions
79
lib/generators/css_zero/add/templates/app/javascript/controllers/list_controller.js
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
lib/generators/css_zero/add/templates/app/javascript/controllers/listbox_controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Controller } from "@hotwired/stimulus" | ||
import Listbox from "https://cdn.skypack.dev/@github/[email protected]?min" | ||
|
||
export default class extends Controller { | ||
static targets = [ "input", "list" ] | ||
|
||
connect() { | ||
this.listbox = new Listbox(this.inputTarget, this.listTarget) | ||
} | ||
|
||
disconnect() { | ||
this.listbox.destroy() | ||
} | ||
|
||
start() { | ||
this.listbox.start() | ||
} | ||
|
||
stop() { | ||
this.listbox.stop() | ||
} | ||
} |