I am able to create a gallery, but I have not been able to hand off my facet list to the component via the facet attribute.
The JSON facet list I have created works in the storybook demo.
I'm guessing there must be some other method, interface, or component I have to pass the list through in order to turn it into an IFacet, but I haven't been able to find this in the hub-components or hub.js docs.
Thanks
const facets = [
{
"label": "From",
"key": "from",
"display": "single-select",
"options": [
{
"label": "SCCWRP",
"key": "sccwrp",
"value": "",
"selected": true,
"filter": {
"filterType": "content",
"owner": "sccwrp"
}
}
],
"accordionClosed": true
},
{
"label": "Types",
"key": "types",
"display": "multi-select",
"pageSize": 5,
"options": [
{
"label": "Data",
"key": "featurelayer",
"selected": true,
"filter": {
"filterType": "content",
"type": "Feature Service",
"tags": { "exact": "bight18-sediment-chemistry" }
}
}
]
}
]
document.querySelector("body").innerHTML += `
<arcgis-hub-content-gallery
query=''
layout='list'
show-search=true
show-sort=true
sort-order='desc'
facet={${facets}}>
</arcgis-hub-content-gallery>
`;