Giter VIP home page Giter VIP logo

Comments (2)

philibe avatar philibe commented on June 24, 2024 1

We have to drop f from dom options:

palmerpenguins::penguins |> 
  DT::datatable(
    # Set filters to above columns
    filter = "top",
    options = list(
      # drop f from dom
      dom = 'ltpir',
      # do not disable searching
      searching = TRUE
    )
  )

https://datatables.net/reference/option/dom:

  • l - length changing input control
  • f - filtering input
  • t - The table!
  • i - Table information summary
  • p - pagination control
  • r - processing display element

I understand now the contradictions in the datatable.net documentation (DT is on DataTables 1.10). I use for many years dom.

Define the table control elements to appear on the page and in what order. Since: DataTables 1.10
Deprecated!

As of v2.0 this feature has been deprecated. This feature will be removed from version 3.0.

This option is superseded by the layout option in DataTables 2, which is far more flexible, intuitive and styling framework independent. Do not use this option for new projects, and actively update older projects to use layout rather than this option.

from dt.

keatonwilson avatar keatonwilson commented on June 24, 2024 1

Thanks @philibe - appreciate the reply and documentation on the dom parameter - that's not something we've used extensively before, but very useful!

from dt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.