We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47c43e2 commit 7cca7c2Copy full SHA for 7cca7c2
components/ack-button/README.md
@@ -62,3 +62,7 @@ if err => btn?error "Some error message"
62
btn?state \done...
63
@logger.clog "changes done..."
64
```
65
+
66
+### Timeout
67
68
+Use `timeout=` attribute to set timeout. Unit is `ms`.
components/ack-button/index.ls
@@ -114,6 +114,9 @@ Ractive.components['ack-button'] = Ractive.extend do
114
<~ sleep 200ms
115
@set \heartbeat, no
116
117
+ @send-request = (opts={}, msg, callback) ~>
118
+ @actor.send-request (opts <<< {timeout: @button-timeout}), msg, callback
119
120
if @get \auto
121
logger.clog "auto firing ack-button!"
122
@fire \_click
0 commit comments