In some tables you might wish to have some content generated automatically. This can be done in a number of ways:
columns.render
for content that is
dynamiccolumns.defaultContent
for
static contentThis examples shows the use of columns.defaultContent
to create a
button element in the last column of the table. There is no action taken on a click of the buttons in
this example, but I'm sure you can see how jQuery listeners could be used to perform custom actions.
Note also that the columns.data
option for the
column has been set to null
to indicate that the column has no information that should be sourced
from the Ajax data source object.
Name | Age | Position | Office | Start date | Salary |
---|---|---|---|---|---|
Name | Age | Position | Office | Start date | Salary |