Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When you enable dataTable export buttons page-length-menu disappears #928

Closed
nando2301 opened this issue Mar 23, 2018 · 1 comment
Closed
Assignees
Milestone

Comments

@nando2301
Copy link

When you enable dataTable export buttons page-length-menu disappears.

You can see it in this link in sections Basic usage and Buttons and row classes (page length menu is not in dataTable)

https://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html

dataTable without export buttons

<h:form>
  <b:dataTable value="#{carPool.carPool}"
               var="car">
    <b:dataTableColumn value="#{car.brand}" />
    <b:dataTableColumn value="#{car.type}" />
    <b:dataTableColumn value="#{car.color}" />
    <b:dataTableColumn value="#{car.year}"  order="asc"/>
    <b:dataTableColumn value="#{car.price}" />
    <b:dataTableColumn value="#{car.enginePower}" label="Engine Power (hp)" />
  </b:dataTable>
</h:form>

2018-03-23_14-00-17

dataTable with export buttons

<h:form>
  <b:dataTable value="#{carPool.carPool}"
               var="car"
               excel="true"
               csv="true"
               pdf="true"
               columnVisibility="true"
               copy="true"
               print="true"
               row-style-class="#{car.enginePower>100?'light-power':'light'}, #{car.enginePower>100?'dark-power':'dark'} ">
    <b:dataTableColumn value="#{car.brand}" />
    <b:dataTableColumn value="#{car.type}" />
    <b:dataTableColumn value="#{car.color}" />
    <b:dataTableColumn value="#{car.year}"  order="asc"/>
    <b:dataTableColumn value="#{car.price}" />
    <b:dataTableColumn value="#{car.enginePower}" label="Engine Power (hp)" />
  </b:dataTable>
</h:form>

2018-03-23_14-00-29

Thanks!

@stephanrauh stephanrauh self-assigned this Jun 2, 2018
@stephanrauh stephanrauh added this to the v1.5.0 milestone Jun 2, 2018
@stephanrauh
Copy link
Collaborator

As it turns out, it's surprisingly simple to solve this bug. Thanks for the hint!

I've uploaded a new developer snapshot of BootsFaces 1.2.1 to Maven Central. See #369 how to get it.

@stephanrauh stephanrauh modified the milestones: v1.5.0, v1.3.0 Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants