Base solution for your next web application
Open Closed

Set CssClass of user-profile-picture.component in containing html page #7153


User avatar
0
rvanwoezik created

Angular component question

Is it possible to set the cssClass of user-profile-picture.component in the containing html page?

for instance:

 <friend-profile-picture [profilePictureId]="selectedUser.friendProfilePictureId" [userId]="selectedUser.friendUserId" [tenantId]="selectedUser.friendTenantId" [cssClass]="'kt-widget3__img"></friend-profile-picture>

Thanks in advance, Rene van Woezik


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @rvanwoezik

    Yes, this is possible. But do it like [cssClass]="'kt-widget3__img'" instead of [cssClass]="'kt-widget3__img". Your version is missing a single quote right after kt-widget3__img.

  • User Avatar
    0
    rvanwoezik created

    Thnx!