Main Content

mlreportgen.report.HTMLModuleTabs.createTemplate

Class: mlreportgen.report.HTMLModuleTabs
Package: mlreportgen.report

Create a copy of the HTML module tabs reporter template

Syntax

template = mlreportgen.report.HTMLModuleTabs.createTemplate(templatePath,type)

Description

template = mlreportgen.report.HTMLModuleTabs.createTemplate(templatePath,type) creates a copy of the mlreportgen.report.HTMLModuleTabs reporter template specified by type at the templatePath location. You can use the copied template as a starting point to design a custom HTML module tabs reporter template for your report.

Input Arguments

expand all

Path and file name of the new template, specified as a character vector or string scalar.

Format of the output, specified as 'html' or 'html-file'.

Output Arguments

expand all

Path and file name of the copy of the template, returned as a string scalar. If the input argument type is 'html', the file name extension of the template is htmtx. If type is 'html-file', the file name extension is htmt.

Examples

expand all

Create a copy of the HTML template for the mlreportgen.report.HTMLModuleTabs reporter and save it with the name myTabsReporterTemplate in the mytemplates folder.

template = mlreportgen.report.HTMLModuleTabs.createTemplate...
     ('mytemplates/myTabsReporterTemplate','html');

After you modify the template, you can use it by setting the TemplateSrc property of the reporter.

Introduced in R2020a