feat: il widget ha tre aspetti (elenco, schede con locandina, carosello) e i comuni si tagliano al limite del servizio

This commit is contained in:
Lorenzo Iovino 2026-09-04 16:33:50 +02:00
parent 5c73bbc2b8
commit fbae03e4f3
7 changed files with 71 additions and 6 deletions

View file

@ -99,7 +99,21 @@
set({ categoria: v });
}
}),
campo('limite', __('How many events', 'piazza-in-festa'), __('From 1 to 20.', 'piazza-in-festa'))
campo('limite', __('How many events', 'piazza-in-festa'), __('From 1 to 20.', 'piazza-in-festa')),
el(SelectControl, {
label: __('Layout', 'piazza-in-festa'),
value: a.formato,
options: [
{ label: __('List', 'piazza-in-festa'), value: 'lista' },
{ label: __('Cards', 'piazza-in-festa'), value: 'schede' },
{ label: __('Carousel', 'piazza-in-festa'), value: 'carosello' }
],
__next40pxDefaultSize: true,
__nextHasNoMarginBottom: true,
onChange: function (v) {
set({ formato: v });
}
})
),
el(
PanelBody,