Docs (4.0.0)
class ViewCompositeVariant constructor

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 static preset 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