aboutsummaryrefslogblamecommitdiffhomepage
path: root/shared/models/plugins/client/register-client-form-field.model.ts
blob: 2df071337a1c5ee347eb33cabb9e56c3eb604ec0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                                                                    
 

                          

                            


                                                                                     


                                                  
                                                                         
 
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

  // Default setting value
  default?: string | boolean

  // Not supported by plugin setting registration, use registerSettingsScript instead
  hidden?: (options: any) => boolean
}

export interface RegisterClientVideoFieldOptions {
  type: 'update' | 'upload' | 'import-url' | 'import-torrent' | 'go-live'
}