Pebble App Framework: Phone API
    Preparing search index...

    Function settleConditions

    • Settles every visibleWhen condition naming a control that has left the page.

      dependentVisibility reads a condition on a control that is not on the page as false, so leaving one would hide its row for good. A control dropped with one value left goes on saving that value, so each condition is settled against it. One that holds comes off and its row shows. One that fails stays, and its row stays hidden as the face meant. With no value given, every condition naming the control comes off and each row shows.

      Parameters

      • page: ClayConfigItem[]

        The settings page. It is changed in place.

      • key: string

        The messageKey of the control that left.

      • OptionalonlyValue: string | number | boolean

        The value the control goes on saving, or undefined when there is none.

      Returns void