Display available opportunities with customizable count and layout options. See the Widgets Docs Index for theming and embed attributes.
Tune the live demo below. Core settings stay aligned in a responsive grid; optional theming overrides use monospace attribute chips so labels don't wrap into neighboring inputs.
Leave blank to use the selected preset. Attribute names stay on one line as code chips so inputs align across rows.
<legion-opportunities count="5" layout="horizontal" tags="retail,food" theme="light" height="100%" base-url="https://your-domain.com" api-key="your-api-key" > </legion-opportunities>
// Load the widget script
<script src="/js/opportunities-widget.js"></script>
// Listen for widget events
document.addEventListener('DOMContentLoaded', function() {
const widget = document.querySelector('legion-opportunities');
widget.addEventListener('load', function(event) {
console.log('Widget loaded:', event.detail);
});
// Programmatically update widget
widget.updateConfig({
count: 10,
layout: 'vertical',
theme: 'dark'
});
// Refresh widget data
widget.refresh();
});