Update plugin doc
This commit is contained in:
parent
23ca2f7bc9
commit
2bee9db56a
|
@ -180,6 +180,15 @@ function register (...) {
|
||||||
type: 'input',
|
type: 'input',
|
||||||
// type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced' | 'select' | 'html'
|
// type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced' | 'select' | 'html'
|
||||||
|
|
||||||
|
// If type: 'select', give the select available options
|
||||||
|
options: [
|
||||||
|
{ label: 'Label 1', value: 'value1' },
|
||||||
|
{ label: 'Label 2', value: 'value2' }
|
||||||
|
],
|
||||||
|
|
||||||
|
// If type: 'html', set the HTML that will be injected in the page
|
||||||
|
html: '<strong class="...">Hello</strong><br /><br />'
|
||||||
|
|
||||||
// Optional
|
// Optional
|
||||||
descriptionHTML: 'The purpose of this field is...',
|
descriptionHTML: 'The purpose of this field is...',
|
||||||
|
|
||||||
|
@ -196,7 +205,7 @@ function register (...) {
|
||||||
result['admin-name]
|
result['admin-name]
|
||||||
|
|
||||||
settingsManager.onSettingsChange(settings => {
|
settingsManager.onSettingsChange(settings => {
|
||||||
settings['admin-name])
|
settings['admin-name']
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -237,12 +246,12 @@ function register ({
|
||||||
You can add/delete video categories, licences or languages using the appropriate constant managers:
|
You can add/delete video categories, licences or languages using the appropriate constant managers:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
function register ({
|
function register ({
|
||||||
videoLanguageManager,
|
videoLanguageManager,
|
||||||
videoCategoryManager,
|
videoCategoryManager,
|
||||||
videoLicenceManager,
|
videoLicenceManager,
|
||||||
videoPrivacyManager,
|
videoPrivacyManager,
|
||||||
playlistPrivacyManager
|
playlistPrivacyManager
|
||||||
}) {
|
}) {
|
||||||
videoLanguageManager.addConstant('al_bhed', 'Al Bhed')
|
videoLanguageManager.addConstant('al_bhed', 'Al Bhed')
|
||||||
videoLanguageManager.deleteConstant('fr')
|
videoLanguageManager.deleteConstant('fr')
|
||||||
|
|
Loading…
Reference in New Issue