Views Refresh
Categories
Component ID
2716117
Component name
Views Refresh
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
1801
Component created
Component changed
Component body
The module provides AJAX command to refresh the current page of the view. This is API only module.
To get AJAX commands in PHP, you can use functions:
- views_refresh_ajax_command_refresh($view_selector); - refresh the current page of the view
- views_refresh_ajax_command_refresh_scroll($view_selector); - refresh the current page of the view and scroll to its top
- views_refresh_ajax_command_refresh($view_selector, TRUE); - load the first page of the view
- views_refresh_ajax_command_refresh_scroll($view_selector, TRUE); - load the first page of the view and scroll to its top
To refresh the view in JavaScript, you can trigger events:
- $(view_selector).trigger('views_refresh'); - refresh the current page of the view
- $(view_selector).trigger('views_refresh_scroll'); - refresh the current page of the view and scroll to its top
- $(view_selector).trigger('views_refresh_first'); - load the first page of the view
- $(view_selector).trigger('views_refresh_scroll_first'); - load the first page of the view and scroll to its top
The view must be configured to use AJAX in order to be refreshable by this module.
