Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component: Avatar #13292

Closed
tomavic opened this issue Jul 4, 2023 · 6 comments · Fixed by #13296
Closed

Component: Avatar #13292

tomavic opened this issue Jul 4, 2023 · 6 comments · Fixed by #13296
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@tomavic
Copy link

tomavic commented Jul 4, 2023

Describe the bug

There is no actual component with the name p-avatarGroup

Your example is actually not working :)

https://codesandbox.io/s/ceg08p

Environment

ng 15

Reproducer

https://codesandbox.io/s/ceg08p

Angular version

15

PrimeNG version

15

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@tomavic tomavic added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jul 4, 2023
@TolgaYigit
Copy link

TolgaYigit commented Jul 4, 2023

It seems that the AvatarGroupModule import is missing from the imports array in the app.module.ts file. Simply adding this import should resolve the issue and make it work as intended.

@SoyDiego
Copy link
Contributor

SoyDiego commented Jul 4, 2023

It seems that the AvatarGroupModule import is missing from the imports array in the app.module.ts file. Simply adding this import should resolve the issue and make it work as intended.

Hi @tomavic, as @TolgaYigit said you should add import { AvatarGroupModule } from "primeng/avatargroup";and then add AvatarGroupModule in the imports array in the app.module.ts file.
By the way I created a CodeSandbox here: https://codesandbox.io/s/primeng-avatar-group-demo-2xcgyt.

@tomavic
Copy link
Author

tomavic commented Jul 4, 2023

Thanks @TolgaYigit & @SoyDiego for reply. However this module is not mentioned in the documentation.

Also please confirm that this module AvatarGroupModule is supported by prime@15

Finally, I would have applied the desired style without importing the module and applied this simple style to my example

.avatar-group p-avatar + p-avatar {
  margin-left: -1rem;
}

and in html

      <div class="flex justify-content-center avatar-group">
        <p-avatar
          *ngFor="let item of items"
          [label]="item.name"
          styleClass="border-1"
          size="large"
          shape="circle"></p-avatar>
      </div>

@SoyDiego
Copy link
Contributor

SoyDiego commented Jul 4, 2023

Thanks @TolgaYigit & @SoyDiego for reply. However this module is not mentioned in the documentation.

Also please confirm that this module AvatarGroupModule is supported by prime@15

I don't know what version of PrimeNG are you using exactly, but I downloaded PrimeNG 15.4.1 and it have the AvatarGroupModule.

image

@tomavic
Copy link
Author

tomavic commented Jul 4, 2023

@SoyDiego
Cool. I believe that this missing part should be add in the documentation.

@cetincakiroglu cetincakiroglu added this to the 16.0.3 milestone Jul 5, 2023
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jul 5, 2023
SoyDiego added a commit to SoyDiego/primeng that referenced this issue Jul 5, 2023
@SoyDiego
Copy link
Contributor

SoyDiego commented Jul 5, 2023

@SoyDiego Cool. I believe that this missing part should be add in the documentation.

I created a PR adding that part: #13296

cetincakiroglu added a commit that referenced this issue Jul 6, 2023
[#13292] - added import AvatarGroupModule to docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants