Interface CompanionInputFieldStaticText

A static un-editable line of text

Available for actions/feedbacks/config

{
id: 'important-line',
type: 'static-text',
label: 'Important info',
value: 'Some message here'
}
interface CompanionInputFieldStaticText {
    id: string;
    isVisible?: ((options: CompanionOptionValues, data: any) => boolean);
    isVisibleData?: any;
    label: string;
    tooltip?: string;
    type: "static-text";
    value: string;
}

Hierarchy (view full)

Properties

id: string

The unique id of this input field within the input group

isVisible?: ((options: CompanionOptionValues, data: any) => boolean)

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

Note: This function must not depend on anything outside of its scope. If it does it will fail to compile and will be skipped.

isVisibleData?: any

JSON serializable data to provide to isVisible

label: string

The label of the field

tooltip?: string

A hover tooltip for this field

type: "static-text"

The type of this input field

value: string

The text to show