Custom Layout Widget

351
2
02-09-2025 12:05 PM
Labels (2)
PartyPelican
Regular Contributor

Hello,

Has anyone had any luck creating a widget with a embedded layout? Something similar to the out of the box grid or card widgets? The only doc I could find was this:

https://developers.arcgis.com/experience-builder/guide/core-concepts/layout/

The widget manifest.json also references layouts, but other than the property itself, I don't see layouts referenced anywhere else:

https://developers.arcgis.com/experience-builder/api-reference/jimu-core/WidgetManifest/#layouts

2 Replies
JeffreyThompson2
MVP Frequent Contributor

Take a look in the Storybook for all the pre-built UI elements.

https://developers.arcgis.com/experience-builder/storybook/?path=/docs/components-jimu-ui-index-card...

You also have access to Bootstrap, which is very useful for implementing a Grid and many other things.

https://getbootstrap.com/docs/5.3/layout/grid/

GIS Developer
City of Arlington, Texas
0 Kudos
PartyPelican
Regular Contributor

I have a somewhat working "shell" example, but I am looking for any additional examples on how to create a custom layout widget. I appreciate anyone's help. shell example.gif

https://github.com/Party-Pelican/exb-custom-widgets/tree/main/widgets/shell