Docs (4.0.0)
Views

class ViewCompositeVariant

An object that includes predefined properties for a view composite.

class ViewCompositeVariant<TPreset, TObject>

Notes

  • View composite variants can be used for the variant property passed to a view composite constructor, in JSX tags and with the static preset method.
  • Variants can only be used with a specific view composite class, and sub classes.
  • To create a new variant for a UI component instead, use UIVariant.

Constructor

Instance Members

  • type readonlyThe view composite class that the variant will be used with.
  • preset readonlyThe properties, bindings, and event handlers that will be preset on each object created with this variant.