Single- and Multi-Select Questions with Custom Item Template
If you want to customize an item in a single- or multi-select question (Radiogroup, Checkbox), follow the steps below:
Implement a component that renders item markup.
The item is an object that implements the
IActioninterface. This object is passed to the component as a prop.
Register the component so that it can be accessed by name.
In React, register the component in
ReactElementFactoryas shown in the
In Angular, register the component in
AngularComponentFactoryas shown in the
In Knockout, use techniques native to this library: Component Registration in Knockout.
Assign the component name to the question's
itemComponentproperty in the survey JSON schema.