kosiakkatrina
3 years ago
committed by
GitHub
3 changed files with 21 additions and 3 deletions
@ -0,0 +1,8 @@ |
|||||||
|
import { Controller } from "@hotwired/stimulus" |
||||||
|
|
||||||
|
export default class extends Controller { |
||||||
|
addHighlight() { |
||||||
|
let section_to_highlight = this.element.dataset.info; |
||||||
|
document.getElementById(section_to_highlight).classList.add('tasklist_item_highlight'); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue