Wiki
Clone wikigrails-datatables / linkIdField
linkIdField
Values
Name | Type | Default |
---|---|---|
linkIdField | String | none |
Description
linkIdField
is a column option that, along with linkController and linkAction, allows you to make the resulting data into a link. If any one of linkController
, linkAction
or linkIdField
is specified, a link will be created. If linkAction
is not specified (but linkController
or linkAction
is specified), then the column data field will be used for the link.
Note that linkIdField
may contain a reference to a field in an association class.
Example
<dt:datatable name="MyTable" domainClass="this.is.my.DomainClass" serverSide="true"> <dt:column name="myFirstProperty" linkController="myController" linkAction="myAction" linkIdField="id"/> <dt:column name="mySecondProperty" linkController="myController" linkAction="myAction" linkIdField="author.id"/> </dt:datatable>
See Also
Back to Options.
Updated