using layout instead of dom for plugins

using layout instead of dom for plugins

tacman1123tacman1123 Posts: 198Questions: 46Answers: 1

The plugins appear to all use the dom key in the configuration to define the plugin ui, e.g. searchPanes and searchBuilder.

What is the relationship between 'dom' and 'layout'? Is there a way using 'dom' to say "Put everything from layout here"?

Intuitively, it feels like layout should contain the plugins.

In particular, how do I define a layout so searchPanes can be on the left?

https://datatables.net/extensions/searchpanes/layout#Displaying-Panes-Vertically

I posted something similar to this in the docs somewhere, but I'm moving it here so it can be a discussion.

Thanks!

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    All of the examples for SearchBuilder, SearchPanes and the others have been updated to use layout. See this example or any of the others.

    It looks like I missed updating some of the manual documentation for the extensions - thank you for brining that to my addition - I will update that. The intention is that layout will be the primary option and dom is 100% legacy now.

    Allan

Sign In or Register to comment.