// defined the array of data
public data: { [key: string]: Object }[] = [
{ Name: 'Australia' , Id: 'AU'},
{ Name: 'Bermuda' ,Id: 'BM'},
{ Name: 'Canada', Id: 'CA', selected: true},
{ Name: 'Cameroon', Id: 'CM' },
{ Name: 'Denmark', Id: 'DK'},
{ Name: 'France', Id:'FR' }
];
// maps the appropriate column to fields property
public fields: Object = { text: 'Id', value: 'Name' };
//set the placeholder to DropDownList input
public text: string = "Select a country";
// Default selected item in dropdown
selectedItem = { Name: 'Bermuda' ,Id: 'BM'};