File

documentation/template-playground/template-playground.component.ts

Implements

OnInit OnDestroy

Metadata

Index

Properties
Methods
Accessors

Constructor

constructor(http: HttpClient, editorService: TemplateEditorService, zipService: ZipExportService, hbsService: HbsRenderService)
Parameters :
Name Type Optional
http HttpClient No
editorService TemplateEditorService No
zipService ZipExportService No
hbsService HbsRenderService No

Methods

Async exportZip
exportZip()
Returns : Promise<void>
initializeEditor
initializeEditor()
Returns : void
ngOnDestroy
ngOnDestroy()
Returns : void
Async ngOnInit
ngOnInit()
Returns : any
refreshPreview
refreshPreview()
Returns : void
resetToDefault
resetToDefault()
Returns : void
Async selectFile
selectFile(template: Template)
Parameters :
Name Type Optional
template Template No
Returns : any
toggleConfigPanel
toggleConfigPanel()
Returns : void
trackByName
trackByName(index: number, item: Template)
Parameters :
Name Type Optional
index number No
item Template No
Returns : string
Async updateConfig
updateConfig()
Returns : Promise<void>

Properties

config
Type : CompoDocConfig
Default value : {}
editorContainer
Type : ElementRef
Decorators :
@ViewChild('editorContainer', {static: true})
lastSaved
Type : Date | null
Default value : null
previewFrame
Type : ElementRef
Decorators :
@ViewChild('previewFrame', {static: true})
saving
Type : boolean
Default value : false
selectedFile
Type : Template | null
Default value : null
sessionId
Type : string
Default value : ''
showConfigPanel
Type : boolean
Default value : false
templates
Type : Template[]
Default value : []

Accessors

previewUrl
getpreviewUrl()

results matching ""

    No results matching ""