Fix plugins doc

pull/3958/head
Chocobozzz 2021-04-27 09:28:05 +02:00
parent 0c12054ae3
commit 248875d243
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 11 additions and 2 deletions

View File

@ -173,9 +173,18 @@ function register (...) {
registerSetting({
name: 'admin-name',
label: 'Admin name',
type: 'input',
// type: input | input-checkbox | input-password | input-textarea | markdown-text | markdown-enhanced | 'select' | 'html'
default: 'my super name'
// type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced' | 'select' | 'html'
// Optional
descriptionHTML: 'The purpose of this field is...',
default: 'my super name',
// If the setting is not private, anyone can view its value (client code included)
// If the setting is private, only server-side hooks can access it
private: false
})
const adminName = await settingsManager.getSetting('admin-name')