import{_ as a,c as r,a0 as t,o as i}from"./chunks/framework.P9qPzDnn.js";const f=JSON.parse('{"title":"Interface: Repeatable","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/features/clickables/repeatable/interfaces/Repeatable.md","filePath":"api/features/clickables/repeatable/interfaces/Repeatable.md","lastUpdated":null}'),o={name:"api/features/clickables/repeatable/interfaces/Repeatable.md"};function n(l,e,s,c,d,h){return i(),r("div",null,e[0]||(e[0]=[t('
Profectus / features/clickables/repeatable / Repeatable
An object that represents a feature with multiple "levels" with scaling requirements.
[VueFeature]:
true
Used to identify Vue Features
amount:
Persistent
<DecimalSource
>
The current amount this repeatable has.
profectus/src/features/clickables/repeatable.tsx:62
amountToIncrease:
Ref
<DecimalSource
,DecimalSource
>
How much amount can be increased by, or 1 if unclickable. *
profectus/src/features/clickables/repeatable.tsx:66
canClick:
Ref
<boolean
,boolean
>
Whether or not the repeatable may be clicked.
profectus/src/features/clickables/repeatable.tsx:58
Dictionary of CSS classes to apply to this feature.
components:
MaybeGetter
<Renderable
>[]
The components to render inside the vue feature
optional
display:MaybeGetter
<Renderable
>
The display to use for this repeatable.
profectus/src/features/clickables/repeatable.tsx:56
id:
string
An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates.
optional
initialAmount:DecimalSource
The initial amount this repeatable has on a new save / after reset.
profectus/src/features/clickables/repeatable.tsx:54
limit:
MaybeRef
<DecimalSource
>
The maximum amount obtainable for this repeatable.
profectus/src/features/clickables/repeatable.tsx:52
maxed:
Ref
<boolean
,boolean
>
Whether or not this repeatable's amount is at it's limit.
profectus/src/features/clickables/repeatable.tsx:64
onClick: (
event
?) =>void
A function that is called when the repeatable is clicked.
void
profectus/src/features/clickables/repeatable.tsx:60
requirements:
Requirements
The requirement(s) to increase this repeatable.
profectus/src/features/clickables/repeatable.tsx:50
optional
style:MaybeRef
<CSSProperties
>
CSS to apply to this feature.
type: typeof
RepeatableType
A symbol that helps identify features of the same type.
profectus/src/features/clickables/repeatable.tsx:68
optional
visibility:MaybeRef
<boolean | Visibility>
Whether this feature should be visible.
wrappers:
Wrapper
[]
The components to render wrapped around the vue feature