1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Plugins can register html/select settings

This commit is contained in:
Chocobozzz 2021-04-09 11:19:14 +02:00
parent 55b84d5346
commit 32d13b203b
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 20 additions and 6 deletions

View file

@ -1,7 +1,13 @@
export interface RegisterClientFormFieldOptions {
name: string
label: string
type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced'
export type RegisterClientFormFieldOptions = {
name?: string
label?: string
type: 'input' | 'input-checkbox' | 'input-password' | 'input-textarea' | 'markdown-text' | 'markdown-enhanced' | 'select' | 'html'
// For select type
options?: { value: string, label: string }[]
// For html type
html?: string
descriptionHTML?: string