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:
parent
5c73bbc2b8
commit
fbae03e4f3
7 changed files with 71 additions and 6 deletions
|
|
@ -18,6 +18,7 @@
|
|||
"regione": { "type": "string", "default": "" },
|
||||
"categoria": { "type": "string", "default": "" },
|
||||
"limite": { "type": "string", "default": "5" },
|
||||
"formato": { "type": "string", "default": "lista" },
|
||||
"tema": { "type": "string", "default": "chiaro" },
|
||||
"colore": { "type": "string", "default": "" },
|
||||
"titolo": { "type": "string", "default": "" },
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue