ButtonControl
The ButtonControl invokes a predefined custom callback.
<div
    id="buttonControlSample"
    data-hf-control="ButtonControl"
    data-hf-options="{
        buttonType: 'large',
        buttonLabel: 'Test',
        buttonHeading: 'Button',
        callback: HFFormdefinition.SampleHelpers.buttonControlCallback
    }"
></div>
FormControl Options​
buttonType - required​
Define the size of the Button.
How to use: 
buttonType: 'medium'Type: 
'small' | 'medium' | 'large'callback - required​
Call a pre-defined JS-method to do something when the Button is invoked.
How to use: 
callback: HFFormdefinition.Namespace.MethodType: 
functionSignature: 
function() => Promise<void>audioFeedback​
Enable/Disable audio feedback on click.
How to use: 
audioFeedback: trueType: 
booleanDefault: 
truebuttonHeading​
Define a label for the control element.
How to use: 
buttonHeading: 'Test'Type: 
stringbuttonLabel​
Define the Button caption. 
Only visible by choosing buttonType 'medium' or 'large'.
Only visible by choosing buttonType 'medium' or 'large'.
How to use: 
buttonType: 'medium'Type: 
stringbuttonStyle​
Define the style of the Button.
How to use: 
buttonStyle: 'primary'Type: 
'default' | 'primary' | 'secondary' | 'success' | 'error' | 'warning'callbackFeedback​
Enable/Disable callback feedback on callback funtion return.
How to use: 
callbackFeedback: trueType: 
booleanDefault: 
truedisableOnClick​
Disable Button while callback function is executed.
How to use: 
disableOnClick: falseType: 
booleanicon​
Sets the icon of the Button. Can be FontAwesome Icon or SVG Image.
How to use: 
icon: 'fa-barcode-scan'Type: 
stringnextToField​
Define the Form Control the Button should be placed next to. Looks like this
How to use: 
nextToField: 'address_city'Type: 
stringvibrationFeedback​
Enable/Disable vibration feedback on click.
How to use: 
vibrationFeedback: trueType: 
BooleanDefault: 
true