Verified Commit 248875d2 authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix plugins doc

parent 0c12054a
......@@ -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')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment