render_card_grid: Render a Grid of Card Images

View source: R/napjack_helpers.R

render_card_gridR Documentation

Render a Grid of Card Images

Description

This function takes a matrix of card objects and renders them as a grid of card images using Shiny's renderImage function. The resulting grid is returned as a Shiny UI component.

Usage

render_card_grid(new_card_grid)

Arguments

new_card_grid

A matrix of card objects, where each cell contains a card object with an icard property specifying the path to the card image.

Details

The function applies renderImage to each card object in the matrix, creating a grid of card images. The images are displayed in a fluid row layout, with each image occupying an equal portion of the available width.

Value

A Shiny UI component representing the grid of rendered card images.


scdtb documentation built on Sept. 30, 2024, 9:35 a.m.