@hmiproject/helio-sdk
    Preparing search index...

    Variable conditionConst

    condition: {
        propEquals: (
            prop: string,
            equals: string | number | boolean | undefined,
        ) => PropCondition;
        propNotEquals: (
            prop: string,
            notEquals: string | number | boolean | undefined,
        ) => PropCondition;
        propNotOneOf: (
            prop: string,
            notOneOf: readonly (string | number)[],
        ) => PropCondition;
        propOneOf: (
            prop: string,
            oneOf: readonly (string | number)[],
        ) => PropCondition;
    } = ...

    Helpers for declaring visibleIf/enabledIf conditions on props in a PropsSchema.

    Conditions reference a sibling prop on the same schema level and are evaluated against its current value in the IDE.

    Type Declaration

    • propEquals: (prop: string, equals: string | number | boolean | undefined) => PropCondition
    • propNotEquals: (
          prop: string,
          notEquals: string | number | boolean | undefined,
      ) => PropCondition
    • propNotOneOf: (prop: string, notOneOf: readonly (string | number)[]) => PropCondition
    • propOneOf: (prop: string, oneOf: readonly (string | number)[]) => PropCondition