From 03a65456f44a6152bb68975e29e076c8c5754cd6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Dec 2021 14:13:33 +0100 Subject: [PATCH] Add 'input-checkbox' value warning in doc --- support/doc/plugins/guide.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/support/doc/plugins/guide.md b/support/doc/plugins/guide.md index 3785246a7..4a0d318a7 100644 --- a/support/doc/plugins/guide.md +++ b/support/doc/plugins/guide.md @@ -686,7 +686,11 @@ async function register ({ registerVideoField, peertubeHelpers }) { name: 'my-field-name, label: 'My added field', descriptionHTML: 'Optional description', + + // type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced' | 'select' | 'html' + // /!\ 'input-checkbox' could send "false" and "true" strings instead of boolean type: 'input-textarea', + default: '', // Optional, to hide a field depending on the current form state // liveVideo is in the options object when the user is creating/updating a live