Home Reference Source
public class | source

MediaGridComponent

Extends:

potassium-es/src/Component~Component → MediaGridComponent

MediaGridComponent shows a CSS grid of CardComponents like images, videos, audio tracks, etc.

Constructor Summary

Public Constructor
public

constructor(dataObject: DataCollection, options: Object, itemComponent: Component, itemOptions: Object)

Public Constructors

public constructor(dataObject: DataCollection, options: Object, itemComponent: Component, itemOptions: Object) source

Params:

NameTypeAttributeDescription
dataObject DataCollection
options Object
  • optional
  • default: {}
itemComponent Component
  • optional
  • default: CardComponent

the options object to pass to the item class constructor

itemOptions Object
  • optional
  • default: {}

the Component class used for each item in the DataCollection