Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 1.97 KB

README.md

File metadata and controls

61 lines (46 loc) · 1.97 KB

Zebble.OptionsList

logo

A Zebble plugin to allows you add an option list from a source.

NuGet

With this plugin you can add single and multiple selection list from a data source and add some action to do when they selected or not.


Setup


Api Usage

To use this plugin in markup or c# code you can use below code:

<OptionsList Id="MyOptionsList" Direction="Vertical" MultiSelect="true" />
await Add(new OptionsList { Id = "MyOptionsList", Direction = RepeatDirection.Vertical, MultiSelect = true });

Data source:

You can set the DataSource property (either in markup or C#) to populate the options list. The data source can be any IEnumerable object.

<OptionsList ... DataSource="GetSource() />

C# code-behind:

IEnumerable<Contacts> GetMyOptions()
{
     ....
}

Properties

Property Type Android iOS Windows
Source OptionsDataSource x x x
List OptionsListView x x x
Value Object x x x
DataSource IEnumerable<object> x x x
MultiSelect bool x x x
Direction RepeatDirection x x x

Events

Event Type Android iOS Windows
SelectedItemChanged AsyncEvent<Option> x x x