MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guía de usuario Pagina 559

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 986
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 558
mlreportgen.dom.CustomElement class
12-65
Method Purpose
clone
Use CustomElement.clone similar to
how you use Paragraph.clone.
Copy custom element.
Examples
Create a Check Box 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});
append(d,ol);
close(d);
rptview('test','html');
See Also
mlreportgen.dom.CustomAttribute | mlreportgen.dom.CustomText
Vista de pagina 558
1 2 ... 554 555 556 557 558 559 560 561 562 563 564 ... 985 986

Comentarios a estos manuales

Sin comentarios