Skip to content

Commit

Permalink
Release 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
erni-cadn committed Oct 11, 2018
1 parent 445159c commit 1703aec
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,23 @@ var result = await MaterialDialog.Instance.SelectChoicesAsync(title: "Select a j
choices: jobs);
```

You can also define pre-selected choice/s by supplying the parameters `selectedIndex` and `selectedIndices` for `MaterialDialog.Instance.SelectChoiceAsync()` and `MaterialDialog.Instance.SelectChoicesAsync()`, respectively.

```c#
...

//Show confirmation dialog for choosing one, with pre-selected choice.
var result = await MaterialDialog.Instance.SelectChoiceAsync(title: "Select a job",
selectedIndex: 1,
choices: jobs);

//Show confirmation dialog for choosing one or more, with pre-selected choices.
var result = await MaterialDialog.Instance.SelectChoicesAsync(title: "Select a job",
selectedIndices: new int[] { 1, 0 },
choices: jobs);

```

##### Usage and Behavior
Confirmation dialogs provide both confirmation and cancel buttons. After a confirmation button is tapped, a selection is confirmed.
If the cancel button is tapped, or the area outside the dialog, the action is cancelled.
Expand Down
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
##### 1.1.1
- Added parameters `selectedIndex` and `selectedIndices` to `IMaterialDialog.SelectChoiceAsync` and `IMaterialDialog.SelectChoicesAsync`. A feature enhancement as stated in this [issue](https://github.com/contrix09/XF-Material-Library/issues/9).
- Fixed `MaterialRadioButtonGroup` and `MaterialCheckboxGroup` having an extra empty row.
- Fixed `MaterialButtonRenderer` in iOS not responding to changes in `MaterialButton.AllCaps` property.

##### 1.1.0
- Added selection controls: `MaterialRadioButton`, `MaterialRadioButtonGroup`, `MaterialCheckbox`, and `MaterialCheckboxGroup`.
Expand Down
2 changes: 1 addition & 1 deletion XF.Material-Azure.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>XF.Material</id>
<title>XF.Material Library</title>
<version>1.1.0</version>
<version>1.1.1</version>
<authors>Dustin Catap</authors>
<owners>Dustin Catap</owners>
<projectUrl>https://github.com/contrix09/XF-Material-Library</projectUrl>
Expand Down
2 changes: 1 addition & 1 deletion XF.Material.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>XF.Material</id>
<title>XF.Material Library</title>
<version>1.1.0</version>
<version>1.1.1</version>
<authors>Dustin Catap</authors>
<owners>Dustin Catap</owners>
<projectUrl>https://github.com/contrix09/XF-Material-Library</projectUrl>
Expand Down

0 comments on commit 1703aec

Please sign in to comment.