0.0.6 • Published 1 year ago

@marketplaces.inc-ui/mpc-grid v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

src/Grid.js:

class: Grid, mpc-grid

Superclass

NameModulePackage
LitElementlit

Fields

NamePrivacyTypeDefaultDescriptionInherited From
loadingpublicbooleanfalseShow the loading state
autoFetchpublicbooleanfalseWhen true, autofetch data from the MPC API and apply it. See `autoFetchConfig` for more info.
autoFetchConfigpublicobject{}Auto fetch data for the grid when required params are supplied\ `{`\ \ `providerId,`\ \ `entityType,`\ \ `marketplaceId,`\ \ `marketplaceBaseUrl,`\ \ `apiKey,`\ \ `apiBaseUrl,`\ \ `queryParams,`\ `}` \\ `entityType` options are: `listings` \\ `queryParams` accepts any supported `mpc` API param
mpcCardConfigpublicobject{}A `\` config object. See the `Card` component for info on the props supported below.\ `{`\ \ `target,`\ \ `darkMode,`\ `}`
maxColspublicnumber4The maximum responsive cols to show. `1-6` are supported
gappublicnumber6The gap size between items. `1-8` are supported
_autoFetchDatapublicarray[]Loaded data from auto fetch config.

Methods

NamePrivacyDescriptionParametersReturnInherited From
loadingTemplateMaybe
loadingTemplate
autoFetchContentTemplate
_handleAutoFetchautoFetch
_handleAutoFetchResponsedata, entityType
_handleSetPropertiesForListingsdata
_getGridClassName

Attributes

NameFieldInherited From
gapgap
maxColsmaxCols
loadingloading
autoFetchautoFetch
autoFetchConfigautoFetchConfig
mpcCardConfigmpcCardConfig
_autoFetchData_autoFetchData

Exports

KindNameDeclarationModulePackage
jsGridGridsrc/Grid.js

mpc-grid.js:

Exports

KindNameDeclarationModulePackage
custom-element-definitionmpc-gridGrid/src/Grid.js