Interface ComponentVisibility<T>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ComponentVisibility<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines if a component should be shown in a template or item.
  • Method Details

    • shouldShow

      boolean shouldShow(ComponentInfo<T> info)
      Determines if a component should be shown in a template or item.
      Parameters:
      info - the ComponentInfo context object
      Returns:
      true if the component should be shown, false otherwise