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

Add ability to alter position of Datatable's page length and search UI #941

Closed
shafinmahmud opened this issue May 10, 2018 · 2 comments
Closed
Assignees

Comments

@shafinmahmud
Copy link

shafinmahmud commented May 10, 2018

Currently, datatable's Searching box comes on the RHS and the Show entries (page length filter) comes on the LHS. And I find no way of altering their position, like what if I want the Searching on the LHS and don't want to have the Show entries filter?

@stephanrauh
Copy link
Collaborator

Sorry for answering late. I hope the answer is still relevant!

I'd use some CSS to achieve your goal. Put something like this in front of your <b:dataTable>:

  <style>
     div.dataTables_wrapper div.dataTables_filter { 
     	text-align:left; 
     }
     .dataTables_wrapper > .row:first-child > div:first-child { 
     	display: none;
     }
  </style>

@stephanrauh
Copy link
Collaborator

This is the result of the CSS rules above (on a German PC):
image

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