import{_ase,cast,o,Nasa}from"./chunks/framework.0799945b.js";constb=JSON.parse('{"title":"Module: features/action","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/features/action.md","lastUpdated":null}'),c={name:"api/modules/features/action.md"},d=a('<h1id="module-features-action"tabindex="-1">Module:features/action<aclass="header-anchor"href="#module-features-action"aria-label="Permalink to "Module: features/action""></a></h1><h2id="interfaces"tabindex="-1">Interfaces<aclass="header-anchor"href="#interfaces"aria-label="Permalinkto"Interfaces""></a></h2><h3id="actionoptions"tabindex="-1">ActionOptions<aclass="header-anchor"href="#actionoptions"aria-label="Permalinkto"ActionOptions""></a></h3><p>•<strong>ActionOptions</strong>:<code>Object</code></p><p>Anobjectthatconfiguresan<ahref="./action#action">Action</a>.</p><table><thead><tr><thstyle="text-align:left;">Name</th><thstyle="text-align:left;">Type</th><thstyle="text-align:left;">Description</th></tr></thead><tbody><tr><tdstyle="text-align:left;"><code>autoStart?</code></td><tdstyle="text-align:left;"><ahref="./../util/computed#computable"><code>Computable</code></a><<code>boolean</code>></td><tdstyle="text-align:left;">Whetherornottheactionshouldperformautomaticallywhenthecooldownisfinished.</td></tr><tr><tdstyle="text-align:left;"><code>barOptions?</code></td><tdstyle="text-align:left;"><ahref="https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype"target="_blank"rel="noreferrer"><code>Partial</code></a><<ahref="./bar#baroptions"><code>BarOptions</code></a>></td><tdstyle="text-align:left;">Apass-throughtotheBarusedtodisplaythecooldownprogressfortheaction.</td></tr><tr><tdstyle="text-align:left;"><code>canClick?</code></td><tdstyle="text-align:left;"><ahref="./../util/computed#computable"><code>Computable</code></a><<code>boolean</code>></td><tdstyle="text-align:left;">Whetherornottheclickablemaybeclicked.</td></tr><tr><tdstyle="text-align:left;"><code>classes?</code></td><tdstyle="text-align:left;"><ahref="./../util/computed#computable"><code>Computable</code></a><<ahref="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"target="_blank"rel="noreferrer"><code>Record</code></a><<code>string</code>,<code>boolean</code>>></td><tdstyle="text-align:left;">DictionaryofCSSclassestoapplytothisfeature.</td></tr><tr><tdstyle="text-align:left;"><code>display?</code></td><tdstyle="text-align:left;"><ahref="./../util/computed#computable"><code>Computable</code></a><<ahref="./feature#coercablecomponent"><code>CoercableComponent</code></a>|{<code>description</code>:<ahref="./feature#coercablecomponent"><code>CoercableComponent</code></a>;<code>title?</code>:<ahref="./feature#coercablecomponent"><code>CoercableComponent</code></a>}></td><tdstyle="text-align:left;">Thedisplaytouseforthisclickable.</td></tr><tr><tdstyle="text-align:left;"><code>duration</code></td><tdstyle="text-align:left;"><ahref="./../util/computed#computable"><code>Computable</code></a><<ahref="./../lib/break_eternity#decimalsource"><code>DecimalSource</code></a>></td><tdstyle="text-align:left;">Thecooldownduringwhichtheactioncannotbeperformedagain,inseconds.</td></tr><tr><tdstyle="text-align:left;"><code>mark?</code></td><tdstyle="text-align:left;"><ahref="./../util/computed#computable"><code>Computable</code></a><<code>string</code>|<code>boolean</code>></td><tdstyle="text-align:left;">Showsamarkeronthecornerofthefeature.</td></tr><tr><tdstyle="text-align:left;"><code>onClick</code></td><tdstyle="text-align:left;">(<code>amount</code>:<ahref="./../lib/break_eternity#decimalsource"><code>DecimalSource</code></a>)=><code>void</code></td><tdstyle="text-align:left;">Afunctionthatiscalledwhentheactionisclicked.</td></tr><tr><tdstyle="text-align:left;"><code>small?<