@companion-surface/base
    Preparing search index...

    Interface CompanionInputFieldNumber

    A number input field

    {
    id: 'size',
    type: 'number',
    label: 'Target size',
    default: 50,
    min: 0,
    max: 100
    }
    interface CompanionInputFieldNumber {
        default: number;
        description?: string;
        id: string;
        isVisibleExpression?: string;
        label: string;
        max: number;
        min: number;
        step?: number;
        tooltip?: string;
        type: "number";
    }

    Hierarchy (View Summary)

    Index

    Properties

    default: number

    The default value

    description?: string

    A longer description/summary/notes for this field

    id: string

    The unique id of this input field within the input group

    isVisibleExpression?: string

    A companion expression to check whether this input should be visible, based on the current options selections within the input group

    This is the same syntax as other expressions written inside of Comapnion. You can access a value of the current options using $(options:some_field_id). This does not support the isVisibleData property, let us know if you need this.

    label: string

    The label of the field

    max: number

    The maximum value to allow Note: values may not conform to this, it is a visual hint only

    min: number

    The minimum value to allow Note: values may not conform to this, it is a visual hint only

    step?: number

    The step size for incrementing/decrementing the value

    tooltip?: string

    A hover tooltip for this field

    type: "number"

    The type of this input field