26 Commits

Author SHA1 Message Date
Luke Towers
85b133090d Use .php for the backend view extension instead of .htm 2022-05-02 00:04:25 -06:00
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
db943c077b This doesn't need to be a form 2017-07-15 12:29:20 +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
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
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
alekseybobkov
a253d6fc57 Added customization options for the Table widget toolbar button labels 2015-08-13 20:26:11 -07: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
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
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
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
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
a73ef52d36 Styling and column alignemnt 2014-12-01 22:31:11 -08:00
alekseybobkov
1f420c88fd Minor refactoring in the navigation code. Implemented cell focusing on the record deletion with enabled pagination. The code profiled and checked for memory leaks. 2014-11-27 21:55:37 -08:00
alekseybobkov
8c5cd78143 Implemented adding row above and below the current row features 2014-11-25 21:47:37 -08:00
alekseybobkov
719d3831ec Refactored navigation, implemented record adding and updating for the client-memory dataset 2014-11-24 22:36:55 -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