Ben Thomson
2f500ab034
Auto-detect correct postback handler for datatable widget. ( #4967 )
...
This change removes the default postback handler for the datatable
widget (onSave) and instead relies on the closest form's request
handler. While `onSave` was a safe default, it did not take into account
the relation widget using other handlers.
The table widget will use an explicitly specified handler first, then it
will try and use the form's request handler, before using `onSave` as a
fallback, although this should really never occur.
Fixes #4776 .
2020-03-05 16:37:16 +08:00
Samuel Georges
cd4f56c64c
Broken link report
...
Refs https://github.com/octobercms/docs/issues/427
2019-12-30 09:55:38 +11:00
Ben Thomson
a59d3b83eb
Code quality clean up ( #4449 )
...
Credit to @bennothommo
2019-07-18 08:50:37 -06:00
Ben Thomson
970d5622c0
Allow datatables to work within a repeater ( #4102 )
...
Fixes #4063 . Credit to @bennothommo.
2019-02-04 12:50:40 -06:00
Nathan van der Werf
3a918ad200
Remove "null" assignments
2018-08-15 18:33:24 +02:00
Samuel Georges
953336d250
Option "searching" defaults to false
2017-07-15 14:34:53 +10:00
Samuel Georges
4239caf9eb
Enable searching via config
...
Only the ServerEventDataSource supports this for now. This is purely to satisfy https://github.com/rainlab/translate-plugin/pull/272
Clean up and fix net spam
2017-07-15 12:18:11 +10:00
Samuel Georges
3145611150
Add search to table widget
...
Refs https://github.com/rainlab/translate-plugin/pull/272
Recompile assets
2017-07-15 12:06:50 +10:00
Quezler
cc17b679f1
Code dusting ( #2826 )
...
Code cleaning according to PSR-2 w/ exemptions (mostly dust).
2017-04-24 21:38:19 +10:00
Samuel Georges
b841f9e066
{@inheritDoc} -> @inheritDoc
2017-03-16 06:26:14 +11:00
Samuel Georges
ba57dd8993
clearAssetDefinitions -> flushAssets
2016-04-12 18:04:15 +10:00
Samuel Georges
c244aef2f8
Clean up
2016-03-18 19:54:27 +11:00
Samuel Georges
e9c7e6b9d1
No it is not safe to share the alias and field name...
...
The field name could be nested, for example: user[data]
Using this as an alias is user[data]::onDoSomething
Resulting in an invalid AJAX handler name
2016-03-17 19:50:34 +11:00
Samuel Georges
202e542985
Oddly, JS may pass false as a string (@todo)
2016-02-20 17:15:21 +11:00
Samuel Georges
18194fa0f9
Complete Table server data source
...
Recompile assets
2016-02-20 12:45:36 +11:00
Samuel Georges
6828094252
Lay initial ground work for server data source
...
- The first server data source (ServerEventDataSource) is event based, so the implementing code is responsible for handling the data maintenance logic explicitly.
- The nature of the server side data source should show the data is maintained automatically with AJAX by individual events triggered on the client side. Records are maintained one-to-one, when you edit it, it updates on the server and so on.
- Only the READ events are implemented at this point.
2016-01-16 17:38:05 +11:00
Samuel Georges
3cfc7b6a5d
Move widget classes that are exclusive to their own space
2016-01-16 16:02:28 +11:00
alekseybobkov
0e2e18af7f
Added autocomplete column type to the Table widget
2015-11-17 21:26:03 -08:00
alekseybobkov
35c9e753f4
Table validation messages are translatable now. Fixed a bug where clicking a checkbox in a table row doesn't change its status.
2015-08-14 20:11:55 -07:00
alekseybobkov
a253d6fc57
Added customization options for the Table widget toolbar button labels
2015-08-13 20:26:11 -07:00
Samuel Georges
b010732796
These methods should be protected, update client lang
2015-08-04 10:01:17 +10:00
Samuel Georges
4e1f704ae3
Minor clean up
2015-02-28 13:48:35 +11:00
Samuel Georges
85c47c4e01
public -> protected $defaultAlias
2015-02-28 12:43:53 +11:00
Samuel Georges
b1b700368f
Radical reorg of some classes
2015-01-28 11:49:54 +11:00
alekseybobkov
70d3778611
Minor changes in the Table widget validation
2015-01-13 18:44:20 -08:00
alekseybobkov
090264e3b9
Minor fixes in the Inspector and Scrollbar classes. Minor updates in the Table widget.
2015-01-11 20:56:17 -08:00
alekseybobkov
cbc808520d
Added JS source map extension to the white map in the .htaccess file. Minor fix in the forms styling. Implemented client-side validation for the Table widget. Updated the Table widget readme file.
2015-01-11 13:42:42 -08:00
alekseybobkov
c26545913c
Improvements in the table widget, added new events to the CMS core, form styling, added support for the Table widget in in the CMS area.
2015-01-07 22:21:52 -08:00
Samuel Georges
a2dec246e5
handler -> postbackHandlerName (doesn't do the same thing as traditional 'handler')
2015-01-03 11:30:02 +11:00
Samuel Georges
433c4c07ff
key_column -> keyFrom
2015-01-02 13:53:56 +11:00
Samuel Georges
59a0e08cd0
data_source -> dataSource
2015-01-02 13:50:51 +11:00
Samuel Georges
89f79a7665
postbackHandlerName / postback_handler_name -> handler
2015-01-02 13:49:26 +11:00
Samuel Georges
b9c259c17f
records_per_page -> recordsPerPage
2015-01-02 13:35:27 +11:00
Samuel Georges
9cfe4ad8f4
Control CSS: table-control -> control-table
2015-01-02 13:24:09 +11:00
alekseybobkov
1480303c4f
The options can now be set with the PHP configuration. Minor updates in the scrollbar widget. Implemented scrolling. Updated documentation.
2014-12-17 22:07:49 -08:00
alekseybobkov
c6eb544101
Implemented the server-side data access. Added automatic POSTing of client-memory data source data. Updated documentation. Minor fixes in the drop-down cell processor.
2014-12-11 22:12:43 -08:00
alekseybobkov
23892f8733
Added the server-side data source foundation classes. Implemented the server-side client memory data source. Added more configuration options ot the client-side script. Updated documentation.
2014-12-10 22:46:17 -08:00
alekseybobkov
baee9edcd2
Implemented server-side drop-down event, updated documentation.
2014-12-10 19:49:50 -08:00
alekseybobkov
9377bcf7c1
Table widget dropdowns - dependent drop-downs and loading indicators
2014-12-09 22:37:52 -08:00
alekseybobkov
f56bfe12d0
Implementing AJAX loading for drop-down options, in progress.
2014-12-08 22:50:25 -08:00
alekseybobkov
e032fd682d
Table drop-down processor, in progress
2014-12-03 22:48:26 -08:00
alekseybobkov
d03370c5bf
Added the checkbox cell processor
2014-12-02 21:46:54 -08:00
alekseybobkov
2bd40037d1
The Table navigation functionality was factored out to the Navigation class. Minor table performance fixes.
2014-11-17 22:27:54 -08:00
alekseybobkov
4e921aab7a
Minor performance changes in the core JS and CSS. Table widget, in progress.
2014-11-16 18:00:15 -08:00
alekseybobkov
11be3fede3
Defining the table widget classes
2014-11-11 19:45:50 -08:00