Skip to content

Commit

Permalink
feature: replaced strings with PrimeIcons in examples, interfaces and…
Browse files Browse the repository at this point in the history
… tests (#138)
  • Loading branch information
markuczy authored Mar 4, 2024
1 parent 558c590 commit 0f67c78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { PrimeIcon } from '../core/utils/primeicon.utils'
* }
* const buttonDetails: ButtonDialogButtonDetails = {
* key: 'MY_KEY',
* icon: 'pi pi-times',
* icon: PrimeIcons.TIMES,
* parameters: {
* value: 'meeting'
* }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type TranslationKey = string | TranslationKeyWithParameters
* value = 'hello',
* },
* },
* icon: 'pi pi-question'
* icon: PrimeIcons.QUESTION
* }
* ```
*/
Expand Down Expand Up @@ -259,7 +259,7 @@ export class PortalDialogService {
* // Welcome message with question mark icon
* const dialogMessage = {
* key: 'WELCOME_MESSAGE',
* icon: 'pi pi-question'
* icon: PrimeIcons.QUESTION
* }
* this.portalDialogService.openDialog('TITLE_KEY', dialogMessage, 'OK_BUTTON').subscribe((stateOnClose) => {
* // operations when dialog has been closed
Expand All @@ -273,13 +273,13 @@ export class PortalDialogService {
* // Ok button with check icon
* const primaryButton = {
* key: 'OK_BUTTON',
* icon: 'pi pi-check'
* icon: PrimeIcons.CHECK
* }
*
* // Refresh button with refresh icon
* const secondaryButton = {
* key: 'REFRESH_BUTTON',
* icon: 'pi pi-refresh'
* icon: PrimeIcons.REFRESH
* }
*
* this.portalDialogService.openDialog('TITLE_KEY', 'WELCOME_MESSAGE', primaryButton, secondaryButton).subscribe((stateOnClose) => {
Expand Down

0 comments on commit 0f67c78

Please sign in to comment.