DataTables / Buttons

Buttons is an extension for DataTables that adds control buttons to the table.
Other
137 stars 149 forks source link

DataTables 2.0 layout Support #199

Closed Dresdn closed 8 months ago

Dresdn commented 8 months ago

With the release of DataTables 2.0, the dom parameter has been deprecated in favor of the new layout parameter. Are there plans to support the layout param with a "buttons" feature string?

I'm using the ajax param and would like to not use the dom param for layout.

AllanJard commented 8 months ago

Along these lines? You can just use buttons as a string it is a top level feature, but then you get the default buttons. Most likely you'd want to provide a list to customise it.

Dresdn commented 8 months ago

Oh geez - yes, exactly like that! I was stuck in just referencing the main Buttons extension page, and didn't realize it was in the Reference section as well.

I'm no DataTables expert, but it is a little confusing to have 3 paths to the same "feature", each with its own explanation:

I appreciate the help!

AllanJard commented 8 months ago

Yes, it isn't ideal, but each covers its own area:

Reference -> Features -> Buttons

Configuration option for the buttons

Reference -> Buttons

Predefined button definitions. This isn't just the ones built into Buttons, but also those from other DataTables extensions which can utalise Buttons if present.

Extensions -> Buttons

The "manual" and examples for Buttons (the other two are reference docs).

There is method to the madness, but I can see that it can be confusing. There needs to be more linking between the sections and also clarity on what the sections do and mean.