Skip to content

Hide columns in filter based export in thymeleaf #275

Open
@sundermann

Description

@sundermann

JSP seems to have a property to exclude certain columns in the export using the display attribute. For thymeleaf this option seems to be missing (at least I couldn't find it in the documentation and adding a dt:display="html" didn't exclude the columns).
Is the feature available somewhere and I didn't specifiy the right attributes or is this feature really missing?

Activity

tduchateau

tduchateau commented on Feb 12, 2015

@tduchateau
Member

Indeed, the dt:display attribute doesn't exist in the Thymeleaf dialect.

Actually it works a bit differently. In Thymeleaf, we assume that every column will be always rendered in HTML and attributes such as dt:xls or dt:pdf allow you to configure what will be rendered in XLS and PDF exports respectively.

I would instead advise to use controller-based exports (see http://dandelion.github.io/datatables/features/export/controller-based-exports.html) which is the most flexible way of exporting. Just use the HtmlTableBuilder to configure the contents of each cell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sundermann@tduchateau

        Issue actions

          Hide columns in filter based export in thymeleaf · Issue #275 · dandelion/dandelion-datatables