new ViewCompositeVariant
Creates a new view composite variant object.
constructor(type: ViewComposite.WithPreset<TPreset, any[], View, TObject>, preset: Readonly<TPreset>)
Notes
- The resulting instance can be used for the
variant
property passed to a view composite constructor, in JSX tags and with the staticpreset
method.
Parameters
- type — The view composite class that the variant will be used with
- preset — The properties, bindings, and event handlers that will be preset on each object created with this variant
Related
- class ViewCompositeVariantAn object that includes predefined properties for a view composite.