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 staticpreset
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
- constructor(type, preset)Creates a new view composite variant object.