# Bottoni personalizzati

È possibile aggiungere pulsanti in vari punti di vte. Per inserire un nuovo pulsante utilizzare il seguente metodo:

**`SDK::setMenuButton(...)`**

<table border="1" id="bkmrk-parametro-%C2%A0-descrizi" style="border-collapse: collapse; width: 100.833%; height: 422.117px;"><colgroup><col style="width: 14.0644%;"></col><col style="width: 9.77354%;"></col><col style="width: 76.1621%;"></col></colgroup><tbody><tr style="height: 31.1px;"><th align="right" dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 66.9375px; vertical-align: top; font-weight: 600; color: rgb(34, 34, 34); font-family: Inter, '??', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Google Sans Flex', Roboto, 'Inter Variable', Inter, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif; line-height: 1.3; text-align: end; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 14.1836%; height: 31.1px;">Parametro

</th><th dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 66.9375px; vertical-align: top; font-weight: 600; color: rgb(34, 34, 34); font-family: Inter, '??', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Google Sans Flex', Roboto, 'Inter Variable', Inter, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif; line-height: 1.3; text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; background-color: rgba(0, 0, 0, 0); border: 1px solid rgb(224, 224, 224); width: 8.93893%; height: 31.1px;"> </th><th dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 66.9375px; vertical-align: top; font-weight: 600; color: rgb(34, 34, 34); font-family: Inter, '??', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Google Sans Flex', Roboto, 'Inter Variable', Inter, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif; line-height: 1.3; text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 76.8775%; height: 31.1px;">Descrizione

</th></tr><tr style="height: 29.6167px;"><td align="right" dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: end; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 14.1836%; height: 29.6167px;">`$type`</td><td dir="auto" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; padding-top: 4px; padding-right: 8px; padding-bottom: 4px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; background-color: rgba(0, 0, 0, 0); border: 1px solid rgb(224, 224, 224); width: 8.93893%; height: 29.6167px;">``= `''`</td><td dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 76.8775%; height: 29.6167px;">il tipo del pulsante, può essere  
`'fixed'` — apparirà nei pulsanti rapidi in alto a destra in tutte le pagine di vte;  
`'contestual'` — apparirà nella posizione più opportuna della pagina specificata del modulo e azione scelti;  
</td></tr><tr style="height: 29.6167px;"><td align="right" dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: end; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 14.1836%; height: 29.6167px;">`$title`</td><td dir="auto" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; background-color: rgba(0, 0, 0, 0); border: 1px solid rgb(224, 224, 224); width: 8.93893%; height: 29.6167px;">``= `''`</td><td dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 76.8775%; height: 29.6167px;">il testo del pulsante</td></tr><tr style="height: 29.6167px;"><td align="right" dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: end; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 14.1836%; height: 29.6167px;">`$onclick`</td><td dir="auto" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; background-color: rgba(0, 0, 0, 0); border: 1px solid rgb(224, 224, 224); width: 8.93893%; height: 29.6167px;">``= `''`</td><td dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 76.8775%; height: 29.6167px;">codice javascript da eseguire. NON è possibile usare i doppi apici (`"`)</td></tr><tr style="height: 70.6333px;"><td align="right" dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: end; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 14.1836%; height: 70.6333px;">`$image`</td><td dir="auto" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; background-color: rgba(0, 0, 0, 0); border: 1px solid rgb(224, 224, 224); width: 8.93893%; height: 70.6333px;">``= `''`</td><td dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 76.8775%; height: 70.6333px;">l’immagine per il bottone. Deve essere specificata senza percorso e risiedere in `themes/softed/` anche nella versione più piccola (esempio: `immagine.png` e `immagine_min.png`)</td></tr><tr style="height: 29.6167px;"><td align="right" dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: end; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 14.1836%; height: 29.6167px;">`$module`</td><td dir="auto" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; background-color: rgba(0, 0, 0, 0); border: 1px solid rgb(224, 224, 224); width: 8.93893%; height: 29.6167px;">``= `''`</td><td dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 76.8775%; height: 29.6167px;">se `$type = 'contestual'`, il modulo in cui il pulsante è visibile.</td></tr><tr style="height: 29.6167px;"><td align="right" dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: end; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 14.1836%; height: 29.6167px;">`$action`</td><td dir="auto" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; background-color: rgba(0, 0, 0, 0); border: 1px solid rgb(224, 224, 224); width: 8.93893%; height: 29.6167px;">``= `''`</td><td dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 76.8775%; height: 29.6167px;">se `$type = 'contestual'`, l’azione (parametro action) in cui il pulsante è visibile.</td></tr><tr style="height: 91.4667px;"><td align="right" dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: end; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 14.1836%; height: 91.4667px;">`$condition`</td><td dir="auto" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; background-color: rgba(0, 0, 0, 0); border: 1px solid rgb(224, 224, 224); width: 8.93893%; height: 91.4667px;">``= `''`</td><td dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; max-width: none; min-width: 64.0488px; vertical-align: top; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224); width: 76.8775%; height: 91.4667px;">stringa del tipo `Nomefunzione:Percorsophp` che rappresenta una funzione (nel file `Percorsophp`) da chiamare prima di mostrare il pulsante. Se restituisce `false`, il pulsante non viene mostrato. La funzione ha un solo parametro `&$params` di tipo reference ad un array con le informazioni sul pulsante.</td></tr></tbody></table>

<div class="el-table" dir="ltr" id="bkmrk-" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; color: rgb(34, 34, 34); font-family: Inter, '??', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Google Sans Flex', Roboto, 'Inter Variable', Inter, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; caret-color: rgb(34, 34, 34); white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; overflow-x: auto;"></div>Per rimuovere il pulsante usare:

**`SDK::unsetMenuButton(...)`**

<div class="el-table" dir="ltr" id="bkmrk--1" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; color: rgb(34, 34, 34); font-family: Inter, '??', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Google Sans Flex', Roboto, 'Inter Variable', Inter, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; caret-color: rgb(34, 34, 34); white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; overflow-x: auto;"></div><table id="bkmrk-parametro-descrizion" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; margin-block: 17px; word-break: normal; border-collapse: collapse; line-height: 1.3;"><thead style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df;"><tr style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; background-color: rgba(0, 0, 0, 0);"><th align="right" dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; border-image: none 100% / 1 / 0 stretch; max-width: none; min-width: 66.9375px; vertical-align: top; font-size: 17px; font-weight: 600; color: rgb(34, 34, 34); font-family: Inter, '??', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Google Sans Flex', Roboto, 'Inter Variable', Inter, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif; line-height: 1.3; text-align: end; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224);">Parametro</th><th dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; border-image: none 100% / 1 / 0 stretch; max-width: none; min-width: 66.9375px; vertical-align: top; font-size: 17px; font-weight: 600; color: rgb(34, 34, 34); font-family: Inter, '??', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Google Sans Flex', Roboto, 'Inter Variable', Inter, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif; line-height: 1.3; text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; background-color: rgba(0, 0, 0, 0); border: 1px solid rgb(224, 224, 224);">  
</th><th dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; border-image: none 100% / 1 / 0 stretch; max-width: none; min-width: 66.9375px; vertical-align: top; font-size: 17px; font-weight: 600; color: rgb(34, 34, 34); font-family: Inter, '??', ui-sans-serif, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', 'Google Sans Flex', Roboto, 'Inter Variable', Inter, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif; line-height: 1.3; text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224);">Descrizione</th></tr></thead><tbody style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df;"><tr style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; background-color: rgba(0, 0, 0, 0);"><td align="right" dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; border-image: none 100% / 1 / 0 stretch; max-width: none; min-width: 64.0488px; vertical-align: top; font-size: 17px; color: rgb(34, 34, 34); text-align: end; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224);">`$type`</td><td dir="auto" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; padding: 4px 8px; border-image: none 100% / 1 / 0 stretch; max-width: none; min-width: 64.0488px; vertical-align: top; font-size: 17px; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; background-color: rgba(0, 0, 0, 0); border: 1px solid rgb(224, 224, 224);">``= `''`</td><td dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; border-image: none 100% / 1 / 0 stretch; max-width: none; min-width: 64.0488px; vertical-align: top; font-size: 17px; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224);">il tipo del pulsante</td></tr><tr style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; background-color: rgba(0, 0, 0, 0);"><td align="right" dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; border-image: none 100% / 1 / 0 stretch; max-width: none; min-width: 64.0488px; vertical-align: top; font-size: 17px; color: rgb(34, 34, 34); text-align: end; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224);">`$id`</td><td dir="auto" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; padding: 4px 8px; border-image: none 100% / 1 / 0 stretch; max-width: none; min-width: 64.0488px; vertical-align: top; font-size: 17px; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; background-color: rgba(0, 0, 0, 0); border: 1px solid rgb(224, 224, 224);">``= `''`</td><td dir="ltr" style="box-sizing: border-box; --csstools-light-dark-toggle--23: #0060df; --focus-ring-color: #0060df; --direction: 1; --inset-start: left; --inset-end: right; padding: 4px 8px; border-image: none 100% / 1 / 0 stretch; max-width: none; min-width: 64.0488px; vertical-align: top; font-size: 17px; color: rgb(34, 34, 34); text-align: start; white-space: break-spaces; text-overflow: ellipsis; overflow: hidden; border: 1px solid rgb(224, 224, 224);">l'ID del pulsante</td></tr></tbody></table>

<p class="callout info">**Hooks**  
Smarty/templates/Buttons\_List.tpl</p>