Interface: RepeatableOptions
features/repeatable.RepeatableOptions
An object that configures a Repeatable.
Properties
classes
• Optional
classes: Computable
<Record
<string
, boolean
>>
Dictionary of CSS classes to apply to this feature.
Defined in
profectus/src/features/repeatable.tsx:62
display
• Optional
display: Computable
<RepeatableDisplay
>
The display to use for this repeatable.
Defined in
profectus/src/features/repeatable.tsx:72
initialAmount
• Optional
initialAmount: DecimalSource
The initial amount this repeatable has on a new save / after reset.
Defined in
profectus/src/features/repeatable.tsx:60
limit
• Optional
limit: Computable
<DecimalSource
>
The maximum amount obtainable for this repeatable.
Defined in
profectus/src/features/repeatable.tsx:58
mark
• Optional
mark: Computable
<string
| boolean
>
Shows a marker on the corner of the feature.
Defined in
profectus/src/features/repeatable.tsx:66
maximize
• Optional
maximize: Computable
<boolean
>
Whether or not clicking this repeatable should attempt to maximize amount based on the requirements met. Requires requirements to be a requirement or array of requirements with Requirement.canMaximize true.
Defined in
profectus/src/features/repeatable.tsx:70
requirements
• requirements: Requirements
The requirement(s) to increase this repeatable.
Defined in
profectus/src/features/repeatable.tsx:56
small
• Optional
small: Computable
<boolean
>
Toggles a smaller design for the feature.
Defined in
profectus/src/features/repeatable.tsx:68
style
• Optional
style: Computable
<StyleValue
>
CSS to apply to this feature.
Defined in
profectus/src/features/repeatable.tsx:64
visibility
• Optional
visibility: Computable
<boolean
| Visibility
>
Whether this repeatable should be visible.