Set a maximum count number for each counter
This commit is contained in:
parent
ed81ff1bfc
commit
e8f4ff5c9d
2 changed files with 16 additions and 2 deletions
|
@ -4,7 +4,11 @@
|
|||
<title>Stimulus esbuild example</title>
|
||||
</head>
|
||||
<body>
|
||||
<div data-controller="count" data-count-can-be-negative-value="true">
|
||||
<div
|
||||
data-controller="count"
|
||||
data-count-can-be-negative-value="true"
|
||||
data-count-maximum-count-number-value="5"
|
||||
>
|
||||
<p>Count: <span data-count-target="result"></span></p>
|
||||
|
||||
<div>
|
||||
|
@ -13,7 +17,10 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div data-controller="count" data-count-can-be-negative-value="false">
|
||||
<div
|
||||
data-controller="count"
|
||||
data-count-can-be-negative-value="false"
|
||||
>
|
||||
<p>Count: <span data-count-target="result"></span></p>
|
||||
|
||||
<div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue