MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Podręcznik Użytkownika Strona 744

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 986
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 743
12 Classes – Alphabetical List
12-250
Parent — Parent of document element
DOM object
This read-only property lists the parent of this document element.
Tag — Tag for document element
string
Tag for document element, specified as a string.
A session-unique ID is generated as part of document element creation. The generated
tag has the form CLASS:ID, where CLASS is the class of the element and ID is the value
of the Id property of the object. You can specify a tag to replace the generated tag.
Specify your own tag value, for example, to make it easier to identify where an issue
occurred during document generation.
Examples
Add HTML Markup
Assign HTML markup to a variable and use that variable to create a RawText object to
append to a document.
import mlreportgen.dom.*;
d = Document('test','html');
script = [ ...
'<script>' ...
'document.write("Hello World!")' ...
'</script>' ...
];
append(d,RawText(script));
close(d);
rptview('test','html');
“Add Content to a Report”
See Also
mlreportgen.dom.CustomAttribute
Przeglądanie stron 743
1 2 ... 739 740 741 742 743 744 745 746 747 748 749 ... 985 986

Komentarze do niniejszej Instrukcji

Brak uwag