Gallery - how to override model attributes


Topic: Gallery - how to override model attributes

qwrobins pro premium asked 1 months ago

Hi, I'm trying to get a gallery going and using the examples in the gallery docs. The issue that I'm running into is that the examples specify "img" and "thumb", but in my case, the backend has "picURL" and "thumbURL" which is causing broken images. Is there a way to override those attributes and set them to what's in my model?

Thanks!


Arkadiusz Idzikowski staff answered 1 months ago

Unfortunately, it's not possible to override those parameters, you need to map your data to the required format.


Please insert min. 20 characters.
Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: Angular
  • MDB Version: 9.4.0
  • Device: Thinkpad
  • Browser: Chrome
  • OS: Ubuntu 20.04
  • Provided sample code: No
  • Provided link: No