Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila Németh committed Jan 4, 2021
1 parent ee0c7ce commit 1cc2a6d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,34 @@ import {AttusLoginDialogComponent} from '@attus/elements';
this.dialog.open(AttusElementsLoginDialogComponent).afterClosed().subscribe((response: any) => {
console.debug(response.username, response.password);
});
```

## Simple Confirm Dialog

```typescript
import {AttusElementsConfirmDialogComponent, ConfirmQuestion} from '@attus/elements';

const data: ConfirmQuestion = {
question: 'Are you sure about it?',
hint: 'It\'s your last chance to change your mind', // Optional
cancel: 'Nooo', // Optional, Default: Cancel
ok: 'Yes, sure', // Optional, Default: OK
};
this.dialog.open(AttusConfirmDialogComponent, {
width: '480px',
data: data,
}).afterClosed().subscribe(result => {
if (result === '1') {
doSomethingConfirmed();
}
});
```

## Angular Material Floating Action Button

A Floating Action Button. An extension for Angular Material Buttons
```
<button attus-fab-button color="accent" (click)="doSomething()">
<mat-icon>add</mat-icon> Add New Element
</button>
```

0 comments on commit 1cc2a6d

Please sign in to comment.