Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakariaJawas committed Nov 1, 2020
2 parents f367ce3 + ed1878a commit 4bc572e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

## Next Release v1.2.0
- [ ] Multiple selection list
- [x] Adding action button

## Release v1.1.0
- [x] Searchable list
Expand Down Expand Up @@ -53,7 +54,7 @@ for exmaple
```kotlin
data class Category(val id: Int, @NameField var name: String)
```
make sure you annotate your title field in the model class with @NameField otherwise **UnspecifiedFieldNameExpection** will be thrown
make sure to annotate your title field in your model class with @NameField otherwise **UnspecifiedFieldNameExpection** will be thrown

**_Step 2_**
Build the sheet
Expand Down Expand Up @@ -160,6 +161,21 @@ default value `false`

used to enable the search functionality in the bottom sheet

**setActionButtonTitle(String)_**

used to change the action button title, default value `Ok`

**setOnActionCallback(ListBottomSheet)_**

this is a callback for the action button click listener, it will return an instance of the current sheet so it can be dismissed

```kotlin
.setOnActionCallback {
Toast.makeText(this, "On Action Button Clicked", Toast.LENGTH_SHORT).show()
it.dismiss()
}
```

## Compatibility
Minimum Android SDK: API level 16

Expand Down

0 comments on commit 4bc572e

Please sign in to comment.