import{_ as e,c as a,o as t,N as r}from"./chunks/framework.0799945b.js";const b=JSON.parse('{"title":"Interface: BaseRepeatable","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/features/repeatable.BaseRepeatable.md","lastUpdated":null}'),o={name:"api/interfaces/features/repeatable.BaseRepeatable.md"},n=r('
features/repeatable.BaseRepeatable
The properties that are added onto a processed RepeatableOptions to create a Repeatable.
• [Component]: GenericComponent
The Vue component used to render this feature.
profectus/src/features/repeatable.tsx:97
• [GatherProps]: () => Record
<string
, unknown
>
▸ (): Record
<string
, unknown
>
A function to gather the props the vue component requires for this feature.
Record
<string
, unknown
>
profectus/src/features/repeatable.tsx:99
• amount: Persistent
<DecimalSource
>
The current amount this repeatable has.
profectus/src/features/repeatable.tsx:82
• amountToIncrease: Ref
<DecimalSource
>
How much amount can be increased by, or 1 if unclickable. Capped at 1 if maximize is false.
profectus/src/features/repeatable.tsx:91
• canClick: ProcessedComputable
<boolean
>
Whether or not this repeatable can be clicked.
profectus/src/features/repeatable.tsx:86
• id: string
An auto-generated ID for identifying features that appear in the DOM. Will not persist between refreshes or updates.
profectus/src/features/repeatable.tsx:80
• maxed: Ref
<boolean
>
Whether or not this repeatable's amount is at it's limit.
profectus/src/features/repeatable.tsx:84
• onClick: (event?
: MouseEvent
| TouchEvent
) => void
▸ (event?
): void
A function that gets called when this repeatable is clicked.
Name | Type |
---|---|
event? | MouseEvent | TouchEvent |
void
profectus/src/features/repeatable.tsx:93
• type: typeof RepeatableType
A symbol that helps identify features of the same type.