• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Gallery View App

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Gallery View App

    How would you recommend a gallery image view widget? I basically have a need to show multiple images in a container. For each image, I would need to be able to add some actions buttons as well. Like to delete, add to cart, print, download, etc... Does that make sense? How would I best accomplish this using NAB? I would have a data source that would return one row for each image (item). The row would have a path to the image on the IFS.


  • #2
    I would suggest using the Tile Widget to view the images. With the tile widget, you can add tile buttons via the behaviors of your application.

    For example, I have a data source that consists of three columns: 'id', 'info' and 'image'. The 'image' column contains the path to the image on the IFS (Integrated File System).

    Example data
    Code:
    [{
        "ID": 3,
        "INFO": "Corduroy",
        "IMAGE": "/resources/images/temp/mcmThree.png"
    }, {
        "ID": 1,
        "INFO": "Marine",
        "IMAGE": "/resources/images/temp/mcmOne.png"
    }, {
        "ID": 2,
        "INFO": "Room and Board",
        "IMAGE": "/resources/images/temp/mcmTwo.png"
    }]
    Tile widget section 1:
    Code:
    <span style="font-weight:500;font-size:18px;">{INFO}</span>
    Tile widget section 2:
    Code:
    <img src={IMAGE} alt={INFO} style="max-width: 100%;max-height: 100%;">

    mcmGalleryExample.jpeg


    I did notice that on mobile, we need to add some padding so that items in the tiles list do not appear too close to each other. Therefore, I'm adding that to our feature/fix tracking system

    Comment


    • #3
      Perfect.
      thanks Johnny!

      Comment

      Working...
      X