Skip to content

Commit 67badb6

Browse files
committed
Fix header level.
1 parent 7d77541 commit 67badb6

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

README.adoc

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,7 @@ This plugin contains the latest https://www.webjars.org[WebJars] release and cor
2525

2626
A common UI element to show plugin details is a table control. Most plugins (and Jenkins core) typically use
2727
plain HTML tables. However, if the table should show a large number of rows then using a more sophisticated control
28-
like https://datatables.net[DataTables] makes more sense. Using this JS based table control provides additional
29-
features at no cost:
30-
31-
- filter results by text search
32-
- provide pagination of the result set
33-
- sort data by multiple columns at once
34-
- obtain table rows using Ajax calls
35-
- show and hide columns based on the screen resolution
28+
like https://datatables.net[DataTables] makes more sense.
3629

3730
In order to use https://datatables.net[DataTables] in a view there are two options, you can either decorate existing
3831
static HTML tables (see <<tables-static>>) or populate the table content using Ajax (see <<tables-dynamic>>). Both
@@ -85,7 +78,7 @@ https://github.com/jenkinsci/warnings-ng-plugin/blob/master/src/main/resources/i
8578
in the warnings plugin to see how such a table can be decorated.
8679

8780
[#tables-dynamic]
88-
==== Tables with dynamic model based content
81+
=== Tables with dynamic model based content
8982

9083
While static HTML tables are easy to implement, they have several limitations. So it makes sense to follow a more
9184
sophisticating approach. Typically, tables in user interfaces are defined by using a corresponding table (and row) model.
@@ -113,7 +106,7 @@ In <<forensics-table-model>> a diagram of the corresponding classes in the Foren
113106
.Table model of the Forensics plugin
114107
image::table-model.png[Tabel model]
115108

116-
===== Table column model
109+
==== Table column model
117110

118111
This first thing a table model class defines is a model of the available columns by creating corresponding
119112
`TableColumn` instances. For each column you need to specify a header label and the name of the bean property that
@@ -122,7 +115,7 @@ show one distinct property of such a bean, see next section). You can
122115
use any of the https://datatables.net/reference/option/columns.type[supported column types] by simply providing a
123116
`String` or `Integer` based column.
124117

125-
===== Table rows content
118+
==== Table rows content
126119

127120
Additionally, a table model class provides the content of the rows. This `getRows()` method
128121
will be invoked asynchronously using an Ajax call. Typically, this method simply returns a list of Java Bean instances,

0 commit comments

Comments
 (0)