MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guida Utente Pagina 388

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 986
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 387
11 Functions – Alphabetical List
11-8
mlreportgen.dom.CustomElement.append
Package: mlreportgen.dom
Append HTML content to custom element
Syntax
customElementOut = append(customElementObj,domObj)
Description
customElementOut = append(customElementObj,domObj) appends an element to
a custom element.
Examples
Append Text to a Custom Element
This example shows how to add a custom element that provides a check box in an HTML
report.
Create and a custom element and append text to it.
import mlreportgen.dom.*;
d = Document('test');
input1 = CustomElement('input');
input1.CustomAttributes = {
CustomAttribute('type', 'checkbox'), ...
CustomAttribute('name', 'vehicle'), ...
CustomAttribute('value', 'Bike'), ...
};
append(input1, Text('I have a bike'));
Append the custom element to an ordered list and display the report.
ol = OrderedList({input1});
Vedere la pagina 387
1 2 ... 383 384 385 386 387 388 389 390 391 392 393 ... 985 986

Commenti su questo manuale

Nessun commento