Profectus / features/clickables/repeatable / RepeatableOptions
Interface: RepeatableOptions ​
An object that configures a Repeatable.
Extends ​
Properties ​
canClick? ​
optionalcanClick:MaybeRefOrGetter<boolean>
Whether or not the clickable may be clicked.
Inherited from ​
Defined in ​
profectus/src/features/clickables/clickable.tsx:39
classes? ​
optionalclasses:MaybeRefOrGetter<Record<string,boolean>>
Dictionary of CSS classes to apply to this feature.
Inherited from ​
Defined in ​
display? ​
optionaldisplay:MaybeGetter<Renderable> | {description:MaybeGetter<Renderable>;effectDisplay: MaybeGetter<Renderable> | undefined;showAmount:boolean;title: MaybeGetter<Renderable> | undefined; }
The display to use for this repeatable.
Type declaration ​
{ description: MaybeGetter<Renderable>; effectDisplay: MaybeGetter<Renderable> | undefined; showAmount: boolean; title: MaybeGetter<Renderable> | undefined; }
description ​
description:
MaybeGetter<Renderable>
The main text that appears in the display.
effectDisplay? ​
optionaleffectDisplay: MaybeGetter<Renderable> | undefined
A description of the current effect of this repeatable, based off its amount.
showAmount? ​
optionalshowAmount:boolean
Whether or not to show the current amount of this repeatable at the bottom of the display.
title? ​
optionaltitle: MaybeGetter<Renderable> | undefined
A header to appear at the top of the display.
Overrides ​
Defined in ​
profectus/src/features/clickables/repeatable.tsx:87
initialAmount? ​
optionalinitialAmount:DecimalSource
The initial amount this repeatable has on a new save / after reset.
Defined in ​
profectus/src/features/clickables/repeatable.tsx:85
limit? ​
optionallimit:MaybeRefOrGetter<DecimalSource>
The maximum amount obtainable for this repeatable.
Defined in ​
profectus/src/features/clickables/repeatable.tsx:83
onClick()? ​
optionalonClick: (e?) =>void
A function that is called when the clickable is clicked.
Parameters ​
e? ​
Returns ​
void
Inherited from ​
Defined in ​
profectus/src/features/clickables/clickable.tsx:50
onHold? ​
optionalonHold:VoidFunction
A function that is called when the clickable is held down.
Inherited from ​
Defined in ​
profectus/src/features/clickables/clickable.tsx:52
requirements ​
requirements:
Requirements
The requirement(s) to increase this repeatable.
Defined in ​
profectus/src/features/clickables/repeatable.tsx:81
style? ​
optionalstyle:MaybeRefOrGetter<CSSProperties>
CSS to apply to this feature.
Inherited from ​
Defined in ​
visibility? ​
optionalvisibility:MaybeRefOrGetter<boolean | Visibility>
Whether this feature should be visible.