# VisibilityTrigger

The component VisibilityTrigger is added as a child element in ViewStack. The component itself is not displayed, but it catches an event from ViewStack that a view containing VisibilityTrigger has been displayed or hidden. Then all actors assigned to the component are notified.

# Properties

  • HTMLElement

  • Element tag: cm4ap-visibility-trigger

# Parameter

# Parameters in the Layout

Name Type Description
triggerActors array of actors The actors that will be notified when the visibility changed.

# Example


<layout>
  <!-- other stuff -->

  <elements>
    <!-- other stuff -->

    <component component="cm4ap-viewstack" id="viewStack">
      <parameter>
        <entry class="actor" key="toggleActor">viewToggleActor</entry>
      </parameter>
      <children>

        <!-- other stuff -->

        <component component="div">

          <!-- other stuff -->

          <component component="cm4ap-visibility-trigger">
            <parameter>
              <entry key="triggerActors" class="array">
                <value class="actor">resultController</value>
                <value class="actor">listOperationActor</value>
              </entry>
            </parameter>
          </component>

        </component>
      </children>

    </component>

  </elements>

</layout>
Request missing documentation