JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › Cardview combo › Reply To: Cardview combo
Hi VAISHNAVI P,
You can use the formatFunction
property to insert a dropdownlist component into the SmartCardView card.
I have prepared a code snippet on how to achieve this:
columns: [
{ label: 'First Name', dataField: 'firstName', icon: 'firstName',
formatFunction: function (settings) {
settings.template =
<div>
<div id=”${settings.value}container”>${settings.value}</div>
<smart-drop-down-list id=”${settings.value}” selected-indexes=”[0]”>
<smart-list-item value=”1″>Name 1</smart-list-item>
<smart-list-item value=”2″>Name 2</smart-list-item>
</smart-drop-down-list>
<div>`;
}
},
`
Let me know if this works for you!
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team
https://www.htmlelements.com/