Galleria Component
Posted: 26 Aug 2020, 14:26
I'm fairly new to React and to PrimeReact, and I can't seem to get the Galleria component to display images. The example uses . I don't have access to that, so I removed that and made an array of images that I'm trying to load. I'm not sure of what all the properties needed are. I put the image name in itemImageSrc, and used the thumbnailImageSrc and alt properties. The only thing I see are the reverse arrow and forward arrow. I think I may be missing some other modules. I'm using
I got the carousel to work and other components. Is there a version of this, that I can use on CodePen to debug with a working version?
Thanks,
Kevin
Code: Select all
import { PhotoService } from '../service/PhotoService';
Code: Select all
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import { Button } from 'primereact/button';
import { Galleria } from 'primereact/galleria';
import './GalleriaDemo.scss';
Thanks,
Kevin