painel-dev/funcoes/<id>/ with two files. The <id> is the folder name and also the address: ?tab=<id>.
1
Pick the id
Lowercase, numbers and
-, 2 to 32 characters, starting with a letter. It cannot be a built-in function id (home, code, sales…).2
Create funcao.json
The menu item (
@nav) and where the data comes from (connect).3
Create tela.html
The layout, built with the pieces.
4
Add the texts
Every new
@t.key in all files of traducoes/.5
Validate and merge
dev_panel_validate on the branch, then merge into main. Or use dev_panel_function_create in the MCP, which creates the folder and validates at once.funcao.json
Limit: 30 functions per script.
Example 1 — Notices (settings)
Edits fields of the script’s remote configuration. The script reads these values inwindow.DoglyScript.config.
painel-dev/funcoes/avisos/funcao.json
painel-dev/funcoes/avisos/tela.html
bind must be in connect.keys. The panel only reads and saves those fields; the rest of the configuration is not touched.
Example 2 — Coupons (server function)
Calls a server function of the script, which decides what to show and what each button does.painel-dev/funcoes/cupons/funcao.json
painel-dev/funcoes/cupons/tela.html
Example 3 — Report (collection, read-only)
Shows up to 100 records from a script collection. Collections are read-only in the Dev panel: onlydt-table, dt-stat and @reload.
painel-dev/funcoes/relatorio/funcao.json
painel-dev/funcoes/relatorio/tela.html
The texts
painel-dev/traducoes/en.json
pt-BR.json, es.json and any extra languages. The Translations screen shows the missing keys.
