The HybridForms InkControl. Users can draw on a canvas. Optional a background image can be included. The drawn sketch is stored.

Hierarchy

Constructors

Properties

clearButton: boolean

Sets a clear button in the left bottom corner if set to true. Default: false.

defaultColor: string

Sets the colour the user draws on the canvas.

defaultValue: any
disposed: boolean
element: HTMLElement
enabled: any
height: number

Sets the height of the canvas.

image: string

Sets the background image of the control.

isfMode: boolean = false

Deprecated

For compatibility reasons to Win10 app.

label: string
labelEl: JQuery<HTMLElement>
logSigning: boolean

If set to true, signatures gets logged.

onChanged: Function
options: any
required: boolean
tooltip: string
visiting: boolean = false
width: number

Sets the width of the canvas.

Methods

  • Deletes all fields that are linked to the InkControl:

      1. FieldId
      1. FieldId + _HFInkImage
      1. FieldId + '_HFInkImageMerged'

    Returns Promise<void>

  • Disables the form control.

    Returns void

  • Disposes the form control.

    Returns void

  • Enables the form control.

    Returns void

  • Returns

    all fields and values that are connected with the the form control.

    Returns any

  • Gets the default value auf the form control, if it is set.

    Returns any

  • Gets the PostfixFieldId. Relevant for operations in repeating units. Check first, if the form control is contained in a repeating unit, see: isRepeatingUnit.

    Returns string

  • Hide FormControl

    Parameters

    • animate: boolean = false

      En/Disable animation

    • lock: boolean = true

      Enable lock of hidden FormControl to not process control with condition

    Returns void

  • Checks if the form control is included in a repeating unit.

    Returns boolean

  • Stores the images and sets the fields with the names of the images.

    Parameters

    • Optional progress: Progress

      [optional] Adds a Progress control.

    Returns Promise<void>

  • Sets the field value of the form control. Be careful: This does not update the UI. In most cases it is better to use the val() method, see: val

    Parameters

    • value: any

      The value of the field

    Returns number

  • Sets a new label value.

    Parameters

    • value: string

      The value to set.

    Returns void

  • Sets any field value by providing its id.

    Parameters

    • id: string

      The id of the field.

    • val: any

      The value of the field. Data type is an object. Its structure depends on the specific field type.

    Returns number

  • Show hidden FormControl

    Parameters

    • animate: boolean = false

      En/Disable animation

    • unlock: boolean = true

      Disable lock of hidden state to process control with condition

    Returns void

  • Does nothing on the InkControl. Use instead the save method to save the InkControl. To get the file names of the stored images use the getById method.

    Parameters

    • value: any

    Returns void

Generated using TypeDoc