Skip to content

charton API


charton API / @chart-on/ui / index / presetLabel

Function: presetLabel() ​

presetLabel(preset, options?): string

Defined in: ui/src/draft-editor.ts:43

The text of a quantity keypad button, e.g. Max (draftMax in the language of options) or 25%.

Parameters ​

preset ​

QuantityPreset

options? ​

Localized

Returns ​

string