1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-29 11:24:10 +01:00
DataTables/examples
Allan Jardine bd804fdcb8 New: child row API methods for showing / hiding child rows
- Showing and hiding details about a row in a child row is very useful
  and proven to be a popular part of DataTables. This commit provides
  that ability in the new API and extends it. It also fully modularises
  the child rows aspects, so it could be removed from the core without
  effecting any other aspects (it may be moved into a seperate file in
  future).

- This will effectively replace fnOpen, fnClose and fnIsOpen

- Added methods:
  - row( selector, opts ).child()
  - row( selector, opts ).child( str, class )
  - row( selector, opts ).child( str, class ).show()
  - row( selector, opts ).child( str, class ).hide()
  - row( selector, opts ).child.show()
  - row( selector, opts ).child.hide()
  - row( selector, opts ).child.isShown()

- Note that unlike the old API you need to specify the data first, and
  then use the show() method to show the child row. This allows the
  details rows to be configured before they are actually shown.

- Additionally multiple child rows can be attached to a parent (pass
  `str` (from above) as an array to use this feature. API plug-ins could
  use this ability to show fully nested tables.

- Not just a string can be passed in now, but also a TR node which will
  actually be used (rather than put into a nested row), any other type
  of node (which will be inserted into a wrapper row/cell) or a jQuery
  object.
2013-05-07 17:56:07 +01:00
..
advanced_init Example: Removed localStorage example 2013-02-04 19:48:39 +00:00
ajax Examples: Updating examples for the new ajax property 2013-02-10 12:26:42 +00:00
api New: child row API methods for showing / hiding child rows 2013-05-07 17:56:07 +01:00
basic_init Fix #184 - examples - typo in y scrolling example 2013-04-23 06:56:58 +01:00
data_sources Fix:Server-side scripts security flaw - The example server-side scripts 2012-12-21 09:33:41 +00:00
examples_support Update: Examples syntax highlighter needs to use on rather than live 2013-02-01 10:03:26 +00:00
plug-ins Fix #186 - Examples - fix typo 2013-04-23 17:15:29 +01:00
server_side Examples: Updating examples for the new ajax property 2013-02-10 12:26:42 +00:00
index.html Fix - examples: Remove link to custom column ordering - now recommended mDataProp 2012-02-10 07:38:45 +00:00