mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
18 lines
334 B
Plaintext
18 lines
334 B
Plaintext
class {
|
|
handleColorMouseOver(color) {
|
|
this.mouseOverColor = color;
|
|
}
|
|
|
|
handleColorMouseOut(color) {
|
|
this.mouseOutColor = color;
|
|
}
|
|
}
|
|
|
|
<div>
|
|
<ul>
|
|
<li for(color in input.colors) onMouseOver("handleColorMouseOver", color) onMouseOut("handleColorMouseOut", color)>
|
|
${color}
|
|
</li>
|
|
</ul>
|
|
</div>
|