Adds a Combobox panel in the Makeswift builder to visually edit a generic prop from a list of options.
A Combobox panel on a Product Card component to pick a product by name
Text for the panel label in the Makeswift builder.
A function that receives a query string and returns an array of type Option<T>
. This function may be async to fetch options asynchronously.
The label
field is displayed in the Makeswift builder and id
must be unique.
The Combobox control passes the generic type T
from the selected Option
to your component, or undefined
if there is no value set in the builder.
The following example adds a Combobox control to the product
prop of a Product Card component.
.makeswift.ts
is a naming convention for organizing Makeswift registration
code. Learn
more.
Adds a Combobox panel in the Makeswift builder to visually edit a generic prop from a list of options.
A Combobox panel on a Product Card component to pick a product by name
Text for the panel label in the Makeswift builder.
A function that receives a query string and returns an array of type Option<T>
. This function may be async to fetch options asynchronously.
The label
field is displayed in the Makeswift builder and id
must be unique.
The Combobox control passes the generic type T
from the selected Option
to your component, or undefined
if there is no value set in the builder.
The following example adds a Combobox control to the product
prop of a Product Card component.
.makeswift.ts
is a naming convention for organizing Makeswift registration
code. Learn
more.