NDO
NDO
FFilament
Created by NDO on 2/15/2024 in #❓┊help
ImageColumn default url for stacked columns
Thanks Leanardo & awcodes. This works perfectly. I added a custom attribute named avatar & defined it in the model $appends array. All images are displayed now.
14 replies
FFilament
Created by NDO on 2/15/2024 in #❓┊help
ImageColumn default url for stacked columns
That's true but I am trying to figure out how to display different placeholder image based on stacked ImageColumn that display multiple images. For example: The column displays three different images of users in the classroom. One has a profile image, and the other two don't. For those two I want to display an avatar that is the same as their initials.
14 replies
FFilament
Created by NDO on 2/15/2024 in #❓┊help
ImageColumn default url for stacked columns
I would probably need something similar to defaultImagesUrls() to return different default image url for each of the stacked images but I didn't find anything similar already existing in docs.
14 replies
FFilament
Created by NDO on 2/15/2024 in #❓┊help
ImageColumn default url for stacked columns
I return this string inside the getImageUrl() method but doesn't work if you want to use it on the ImageColumn that also uses stacked() method. It expects string type and not array of strings.
14 replies
FFilament
Created by NDO on 2/15/2024 in #❓┊help
ImageColumn default url for stacked columns
That is a good option, but is there any way to display user avatar url? I want to display different avatars based on the user initials.
14 replies