Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iamageo committed Dec 22, 2022
1 parent ee50f00 commit fcb30c5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,28 @@ just call in build:
```kotlin
.hideNegativeButton(hide = true)
```
## How to change icon 📌
📌 Note: your icon can be of type iconRes or drawable

## how not to cancel dialog on click
if you call .dialogRes() don't call .type()
```kotlin
.dialogIcon(iconRes)
```

## how not to cancel dialog on click ❌
just call property shouldIDismissOnClick in onPositive or onNegative:
```kotlin
.onPositive(text = "Confirm", shouldIDismissOnClick = false) {
Toast.makeText(this, "click in positive button", Toast.LENGTH_SHORT).show()
}
```

## Type ✔️ ℹ️ ❌
## Type ✔️ ℹ️
We can customize the type of Dialog.
```kotlin
TYPE.SUCCESS
TYPE.INFO
TYPE.ALERT
TYPE.ERROR
```
By Default Position is Bottom.
Expand Down Expand Up @@ -107,11 +115,13 @@ Attributes | Type | Default | Description
title | String | none | Title of you dialog.
description | String | none | Description of you dialog.
position | POSITIONS.BOTTOM, POSITIONS.CENTER | POSITIONS.BOTTOM | Indicates the position of the dialog.
type | TYPE.SUCCESS, TYPE.INFO or TYPE.ERROR | none | Indicates the dialog type, each type contains an icon.
type | TYPE.SUCCESS, TYPE.INFO, TYPE.ALERT or TYPE.ERROR | none | Indicates the dialog type, each type contains an icon.
onPositive | onClick | none | Button positive click.
onNegative | onClick | none | Button negative click.
hideNegativeButton | Boolean | false | hide negative button.
cancelable | Boolean | false | set if Beautiful is cancelable on click in screen
cancelable | Boolean | false | set if Beautiful is cancelable on click in screen ❌
shouldIDismissOnClick | boolean | true | set if dialog dismiss on click in onPositive or onNegative
dialogIcon | Int, drawable | none | set dialog icon
## License
```
Expand Down

0 comments on commit fcb30c5

Please sign in to comment.