Allan Jardine
4d25479434
Shorter way to get the column title
...
I'd be happy for the change to be released under the MIT license ;)
2015-11-17 11:13:58 +00:00
Allan Jardine
fdaa840642
Dev: Ordering of example sections for Editor and Buttons
...
- This really needs to be pulled out into the XML
2015-11-06 14:38:34 +00:00
Allan Jardine
369214c777
Fix - examples: Write the code to be displayed in the server load code tab as text so any HTML entities will be escaped
2015-11-06 10:40:22 +00:00
Allan Jardine
c2e59f43f6
Fix docs: Update dt-init footerCallback
example to include a default value
2015-11-02 11:04:01 +00:00
Allan Jardine
08d61efa63
Dev: Naming for AMD and CommonJS loaders set to a unique value that will be useable on bower and npm due to no conflicts.
...
- Using just `datatables` would be difficult since I and others already
publish packages with that name. Anyone using those packages already
would run into real issues if I were to change their meaning and
contents!
2015-10-13 15:28:14 +01:00
Allan Jardine
954a3b080b
Update cell node indexes when removing a row
2015-10-13 15:26:36 +01:00
Allan Jardine
2d0ad42749
Fix - example: Add link to features example for the options reference docs
...
- Thanks georgemcfly for pointing this out
2015-10-06 12:04:55 +01:00
Allan Jardine
ea9e926b53
Dev: Output a warning if html tidy is not installed
...
- I just updated my PHP and HTML Tidy was not installed which resulted
in the examples in the dist repo all being rewritten unfortunately.
This should stop that happening again.
2015-09-25 10:08:52 +01:00
Allan Jardine
b84cc6063e
Fix: The every()
method did not have the selector options applied to it - this was particularly noticable with the dt-api columns().every()
method
...
- See DataTables/DataTables #679 and https://jsfiddle.net/7mgny9gb/2/
- Thanks @mpryvkin for noting this bug and the test cases
2015-09-25 09:50:54 +01:00
Allan Jardine
50d51a90e7
Dev: Stop possible error condition in Syntax highlighter
2015-09-18 15:32:30 +01:00
Allan Jardine
1d401e4b15
Fix - example: Defensive programming in the SSP class
...
- Check for parameters before using them
2015-09-14 14:18:59 +01:00
Allan Jardine
5e97621d74
Fix - example: Description for row id example contained the wrong link to dt-init rowId
2015-09-10 10:00:25 +01:00
Allan Jardine
c42dc04838
Fix - example: Add row API example was always redrawing to the first page
2015-09-09 14:02:51 +01:00
Allan Jardine
6352732eac
Fix - example: Column filtering would reset the paging on change event, which could give the impression that pading didn't happen since it is immediately over written.
...
Thread 29670
2015-08-25 14:17:32 +01:00
Allan Jardine
e7e439dd0a
Fix: Cell invalidation would fail due to incorrect logic
...
- If d or objectRead were truthful then the row's data object would be
replaced with an empty object. This was one shortcut in code too many!
- Relates to thread 29530 with thanks to idleog.
2015-08-19 14:40:22 +01:00
Allan Jardine
a7a9ac1910
Dev: Fix case issue with file names for the example builder
...
- This is the problem with developing on a case insensitive file system
which the Mac default is!
2015-08-19 12:24:58 +01:00
Allan Jardine
50cac9640a
Dev: Nowrap in syntax highlighter
2015-08-19 09:56:33 +01:00
Allan Jardine
3977c5de72
Sync with latest DataTablesSrc
2015-08-12 19:50:30 +01:00
Allan Jardine
13c3a5400e
Dev: Don't just jQuery code if jQuery hasn't been loaded (example index pages)
2015-08-12 19:48:50 +01:00
Allan Jardine
7811a69f30
Update - examples: Improve descriptions of examples and refer to the new extensions where appropriate
2015-08-12 19:48:33 +01:00
Allan Jardine
588e78f92b
Update - example: Use Bootstrap rather than jQuery UI for the scrolling and tabs example.
...
Bootstrap tabs seem to be more popular these days
2015-08-12 19:48:15 +01:00
Allan Jardine
e111fae862
Dev: Update example templates to refer to extensions rather than extras
2015-08-10 14:59:41 +01:00
Allan Jardine
781f7fcaef
Update - examples: All examples now use $().DataTable()
to construct the table.
...
- The API examples already used the new form, but many were still
`$().dataTable()`, which still works, but the new API form method is
prefered.
2015-08-10 14:57:47 +01:00
Allan Jardine
ecf94192ae
Dev: Update Foundation CDN
...
Dev: Built fixes for Editor
2015-08-06 20:42:36 +01:00
Allan Jardine
21705f049a
Dev: Example build update to allow the new components frameworks to build from the CDN
2015-08-06 20:41:26 +01:00
Allan Jardine
065e3d2b1d
Update - examples: Remove jQuery UI themed scrolling example
...
- Bootstrap is proving to be a far more popular theme for DataTables -
this example comes from back in the day when jQuery UI theming was
first added, so it is no longer required.
2015-08-06 20:41:08 +01:00
Allan Jardine
eff925f168
Fix - examples: Pipelining description had a typo
2015-08-06 20:40:12 +01:00
Allan Jardine
a67cb611de
Fix - docs: dt-api columns()
incorrect argument type for column selector
...
Fix - docs: `dt-api column().index()` incorrect return type was documented
2015-08-06 20:39:33 +01:00
Allan Jardine
c6cea56621
New - example: Scrolling example with dynamic height using the vh
CSS unit
2015-07-24 15:39:18 +01:00
Allan Jardine
fa9fa2e296
Dev: Syntax highlighter - link urls with a comma in them
...
Dev: Syntax highlighter - show the type label above the code so it doesn't over lap the code
Dev: Syntax highlighter - don't show the `:after` option in highlighted code
2015-07-24 11:45:26 +01:00
Allan Jardine
7b57d5f10b
Fix - docs: Add examples for dt-init columns.defaultContent
showing how it can be used with null or undefined content
...
Thanks to `jonahjonah` for pointing this out
2015-07-24 11:41:02 +01:00
Allan Jardine
8ed28b6f00
Dev: Remove SQL error message on error
...
This fixes DataTables/DataTables #604
2015-07-15 17:29:13 +01:00
Allan Jardine
3d3f72aec6
Fix - PHP: Validate the JSONP callback as a valid Javascript function
2015-07-15 17:11:15 +01:00
Allan Jardine
994121d024
Dev: Updating Markdown extension for linking to documentation and also the styles to make more visible
...
- Have used :after for the information about what type of link it is -
this stops it from being included in a copy / paste which was annoying
- The postfix is a bit more informative than a letter about what
software it relates to
- With the move to the 1.10 API for all of the extensions, showing the
extension letter was redundent anyway
- Adding -button link type
- Improved the colours
2015-07-15 17:10:59 +01:00
Allan Jardine
4b378ff787
Dev: Updating the XML for the external styling examples to use the new example build framework
2015-07-15 17:10:24 +01:00
Allan Jardine
5ab2e30e66
Dev: Latest extension built commands. This is not yet complete!
2015-07-06 21:04:51 +01:00
Allan Jardine
ca703a9d6b
Dev: Update Bootstrap example to use the styling framework build code
2015-07-06 21:04:14 +01:00
Allan Jardine
1379e9725b
Fix - example: Comment about dt-init columns.orderData
incorrectly stated that the sort direction could be specified.
2015-07-06 21:02:06 +01:00
Allan Jardine
1effb64cfa
Fixed event handlers in table headers in IE8
...
On line 605, column.sTitle is set to the TH's innerHTML.
On line 1816, column.sTitle is compared with cell.html().
If you have child elements with event handlers on them inside the TH, these are not the same in IE8 (see https://gist.github.com/simonbrent/933e552739477f4be3ab#file-test-html )
As a result, the check on 1816 fails, the contents of the cell is replaced, and the event handlers are removed.
Comparing instead with cell[0].innerHTML fixes this issue.
2015-06-10 09:45:55 +01:00
Allan Jardine
801e4bedf1
New: dt-init rowId
option to specify what property should be used from the row's data source object to read the row's id and then set it as the DOM id (previously this was static as the DT_RowId
option)
...
New: `dt-api row().id()` and `dt-api rows().ids()` to get the id from one or multiple rows, based on the new `dt-init rowId` option
2015-06-04 15:26:45 +01:00
Allan Jardine
63c215b044
Merge pull request #43 from cdaringe/bugfix/jq-2.1.4-sppt
...
Fix: Compatibility with jQuery 2.1.4 when using `$.map` and passing in only arrays
2015-05-30 14:09:37 +01:00
Allan Jardine
feccbc5968
jq 2.1.4 sppt
2015-05-30 14:09:19 +01:00
Allan Jardine
59457b63e6
Fix example: Server-side processing data source example column titles were incorrect
2015-05-30 14:09:03 +01:00
Allan Jardine
09ff48a486
New: Add numbers
paging option for dt-init pagingType
to round off the full set of basic options
...
Thank you `rubenduiveman` for suggesting this enhancement
2015-05-13 13:51:23 +01:00
Allan Jardine
be7a63761b
Dev: Updating Editor build for new framework structure
2015-05-12 09:52:16 +01:00
Allan Jardine
05d796d0a2
Fix - example: Typo in description of dom
example
...
Thanks _repjackson_ for noting the error
2015-05-12 09:52:00 +01:00
Allan Jardine
8236be574d
Update - example: Scrolling example updated to use the nowrap
class to prevent wrapping of content and thus force scrolling
2015-05-06 11:29:51 +01:00
Allan Jardine
9a7cf935ea
Fix examples: Example pages styling updated to work better when operating with Bootstrap and Foundation styled table examples
2015-05-06 11:28:52 +01:00
Allan Jardine
bf0b4d0a42
Dev: Don't syntax highlight in IE6/7 as it slows them down hugely
2015-04-30 14:01:36 +01:00
Allan Jardine
8423b06fae
Dev: On Bootstrap CSS demo pages don't change the Bootstrap default font
2015-04-29 17:10:34 +01:00
Allan Jardine
07bed19ed7
Fix examples: Demo script needs to check for the dt
namespace on events triggered by DataTables
2015-04-03 12:22:10 +01:00
Allan Jardine
5c919423c1
Fix - docs: dt-api row().child()
notes that className
is not added to pre-existing node
2015-04-03 12:21:27 +01:00
Allan Jardine
e7760542e0
Fix - example: Server-side processing child rows example would throw a JS error if you click on the child row
2015-04-03 10:52:24 +01:00
Allan Jardine
294a32f8d0
Fix docs: Add reference to dt-init columns.orderSequence
from dt-init order
2015-04-03 09:50:06 +01:00
Allan Jardine
825877f157
New: dt-api rows().every()
, dt-api columns().every()
and dt-api cells().every()
iterator methods to make it easier to perform operations on the table elements. This is done by setting the context of the callback provided to be the singular expression for the table elemtn in question. This basically means you can access the singular methods from this
- e.g. this.data()
will get the data for the element, this.node()
will get the cell when using dt-api cells().every()
etc. The exisiting interator methods of dt-api each()
and dt-api iterator()
remain, and each has its own place for optimial usage of the API, but it is likely that the majority of use will switch to focus on these new methods. The examples in the rest of hte documentation has been updated to reflect this fact.
2015-03-03 15:42:36 +00:00
Allan Jardine
6217b1aaae
Merge branch 'master' of github.com:DataTables/DataTablesSrc
2015-02-16 16:00:55 +00:00
Allan Jardine
455121839a
Fix docs: dt-init stateSaveCallback
syntax error
2015-02-16 16:00:20 +00:00
Allan Jardine
a9b35a4927
Dev: Add ability to set a body class for an example for extra styling information. This will help to combat conflicts with the datatables.net site css when deployed on the site.
2015-02-16 12:01:07 +00:00
Allan Jardine
3824202e0e
Dev: Update CDN libraries for the examples
2015-02-12 14:11:54 +00:00
Allan Jardine
a5d77d99bc
Sync repos: Add html data options example
2015-02-10 14:27:53 +00:00
Allan Jardine
c98854def4
Fix - example: Dro the http
protocol from the i18n CDN file loder example so it works over https
2015-02-10 14:25:16 +00:00
Allan Jardine
d6f46dffbb
New: DataTables intialisation options can now be specified using HTML data-*
attributes on the HTML <table> tag and on the cells of the column headers in the table.
...
* A new example of this is included
* Fixes DataTables/DataTablesSrc #9
2015-02-06 16:35:34 +00:00
Allan Jardine
71535def21
Fix examples: Server-side processing examples didn't correctly show the Ajax data after the first draw
2015-02-06 16:35:12 +00:00
Allan Jardine
71863bc49f
Site: Syntax highlight could line break incorrectly
2015-01-22 10:22:28 +00:00
Allan Jardine
f4f8ca5632
Fix example: Index column API example had a typo
...
* This fixes DataTables/DataTables #482
2015-01-22 10:22:13 +00:00
Allan Jardine
d1ea76a958
Fix example: dt-init rowCallback
example was highlighting all rows, rather than just a select few due to the logic condition being a bit loose!
2015-01-11 16:27:29 +00:00
Allan Jardine
d65dd47fe6
New: where
condition controls for the example PHP server-side processing class (SSP
). This takes the form of a new complex
method (to compliment the exisiting simple
method) which accepts where
parameters that can be used for either user based filtering, or server based filtering.
2015-01-11 16:26:59 +00:00
Allan Jardine
ff13ccc3ca
Update example: Update Ajax language example to read file form the CDN
2014-12-16 15:24:39 +00:00
Allan Jardine
a5e8ca8a2e
Dev: Remove unused files from the example resources. Examples use the CDN files now
2014-12-16 15:24:21 +00:00
Allan Jardine
6c7ada53eb
Fix: Image file size optimisation.
...
See DataTables/DataTables #470 for details
2014-12-16 15:24:05 +00:00
Allan Jardine
1ac1ea6752
Dev: Support for a "private" examples directory where the examples are
...
compiled but not included in the ToC
Dev: longer line wrapping!
2014-12-11 15:27:11 +00:00
Allan Jardine
24b2d11460
Dev: Show language name in code highlighting
2014-12-04 12:23:12 +00:00
Allan Jardine
4112da87a2
Dev: Add C# syntax highlighting
2014-12-02 10:38:13 +00:00
Allan Jardine
a5ff36fdb9
Fix example: Row details discription refered to an incorrect function name
2014-12-02 10:37:56 +00:00
Allan Jardine
a0d6150c76
Dev: use Google hosts Raleway font for standalone Editor
2014-12-02 10:37:23 +00:00
Allan Jardine
bc256721ce
Fix docs: Invalid line to function that doesn't exist
2014-11-28 10:02:22 +00:00
Allan Jardine
f8770a6b2a
Update example: Use an initial value for the dt-api reduce()
call to simplify the logic
2014-11-03 15:17:30 +00:00
Allan Jardine
e62a747c2e
New: dt-api $.fn.dataTable.util.escapeRegex()
utility method for escaping regular expressions
...
Update example: Use the new `dt-api $.fn.dataTable.util.escapeRegex()` method to escape regex characters in the search input filter example
2014-10-30 11:26:34 +00:00
Allan Jardine
e06931ee0b
Fix example: Improve code for multi-column select
example
2014-10-10 10:54:11 +01:00
Allan Jardine
cfe6b6dce3
New object read from DOM example
2014-10-09 16:22:54 +01:00
Allan Jardine
a6b871d660
New: Ability to use dt-init columns.data
with a DOM sourced data to read the row information into an object rather than an array (the default)
2014-10-08 14:19:14 +01:00
Allan Jardine
9a49208617
New: dt-api $.fn.dataTable.util.throttle()
static utility method. This provides extension authors with an easy way to throttle function calls
2014-10-08 11:28:33 +01:00
Allan Jardine
4e30d0ccf7
Fix example: Hidden columns description text had inversed logic for the column state
2014-10-07 15:39:22 +01:00
Allan Jardine
e0a08d511b
Fix examples: SQLServer demo SQL gave a warning about inserting ids on an identify column
2014-09-22 10:50:24 +01:00
Allan Jardine
a8ce572cb3
Fix examples: Deferred rendering SSP example's initial HTML was out of date
2014-09-22 10:50:08 +01:00
Allan Jardine
491945bace
Fix - examples: Incorrect column title for some server-side processing examples
2014-09-22 10:49:52 +01:00
Allan Jardine
cda203dbdc
Fix: Example SQL database had extension field as an integer. However, that meant that numbers such as 0001
were not correctly saved
2014-09-08 15:14:33 +01:00
Allan Jardine
b1f1b2d961
Dev: Update bootstrap libraries to 3.2
2014-09-08 15:14:16 +01:00
Allan Jardine
4453229416
Fix exampple: Remove rowIndex
from select_rows
example - not used
...
Dev: Add comment to rowCallback trigger about undocumented parameters
2014-09-08 15:13:59 +01:00
Allan Jardine
32a5bc6aee
Fix docs: Typo in processing event example
2014-08-28 14:23:15 +01:00
Allan Jardine
267ab376b8
Update example: Update the select column filtering example to use dt-init initComplete
...
* There are often questions about why it isn't working with Ajax. it
will now
2014-08-15 16:29:16 +01:00
Allan Jardine
e3a1d7b9a5
Workaround for dom text sorting
2014-08-06 11:21:27 +01:00
Allan Jardine
3978684f44
Update to 1.10.3-dev
2014-08-06 11:21:07 +01:00
Allan Jardine
f8a66288db
Fix: Postgres generated SQL wouldn't allow a row to be inserted by Editor due to an incorrect sequence count
2014-08-06 11:18:44 +01:00
Allan Jardine
7df451fe4c
Improved last page calculation.
...
Improved last page calculation when page size is changed on last page.
e.g. Suppose there are total 12 records and page size is set to 5 records/page. Go to last page, which should be 3, change page size to 10. Page#2 should be selected and it should show 2 records on it.
2014-08-06 11:17:57 +01:00
Allan Jardine
fc9d6fac64
Fix - examples: Update the tag
CSS to be more readable
2014-07-25 10:09:09 +01:00
Allan Jardine
89c4e24698
Fix examples: Search API examples should use consistent terminology
2014-07-18 12:09:54 +01:00
Allan Jardine
c4cdba49e4
Fix example: Use search
terminology
...
* See thread 22268
2014-07-18 12:09:03 +01:00
Allan Jardine
4706058c95
Dev: CDN option for when building the examples
2014-06-27 15:24:58 +01:00
Allan Jardine
6f6d113134
Fix example: Range filter didn't correctly handle 0
2014-06-27 15:24:24 +01:00