I am creating custom widget in Magento 2. I have created widget.xml file to create this. All things are fine and widget option is showing as well in admin.
Only I want selected value "Yes" instead of "No". Right now it is "No" as default selected value.
Here is the code I am using for select box in widget.xml
<parameter name="chart_layout" xsi:type="select" visible="true" source_model="Magento\Config\Model\Config\Source\Yesno" sort_order="2"> <label translate="true">Full Width</label> </parameter>
I am getting below section as screenshot.