public List<Notification> DataList2 { get; set; } = new List<Notification> {
new Notification {
Text="Welcome",
SecondText="2nd Line Test",
URL="http://www.google.com",
Icon="fas fa-bell fa-fw",
IconBackgroundColor="green"
},
new Notification {
Text="Hello World!",
SecondText="2nd Line Test hello worlds",
URL="http://www.cnet.com",
Icon ="fab fa-android",
IconBackgroundColor="yellow"
},
new Notification {
Text="Hello Listview!",
SecondText="Syncfusion",
URL="http://www.syncfusion.com",
Icon ="fab fa-android",
IconBackgroundColor="blue"
},
};
// Button click to change data source
public void onClick()
{
DataList = DataList2;
}
|
public void add()
{
List<Notification> data = new List<Notification>() {
new Notification
{
Text = "New Item",
SecondText = "Testing 2nd Items",
Icon = "fa-fa ar",
IconBackgroundColor = "grey"
}
};
dodo2.AddItem(data, null);
}
|