new SearchPageSizeView()
- Source:
Extends
- Backbone.View
Members
events
- Source:
list of events for Backbone View
Methods
(static) init()
- Source:
For each page size component on a page creates instance of
"SearchPageSizeModel" and
"SearchPageSizeView"
getCurrentPageSize() → {String}
- Source:
Get page size value from hash
Returns:
value of current page size
- Type
- String
initialize()
- Source:
Initially sets data to model and watches events on which
view should be updated
Listens to Events:
- module:XA.component.search.vent~event:hashChanged
selectOption(pageSize)
- Source:
Manage 'selected' attribute for options
Parameters:
Name | Type | Description |
---|---|---|
pageSize |
String | active page |
updatePageSize(pageSize)
- Source:
Updates hash with selected page value
Parameters:
Name | Type | Description |
---|---|---|
pageSize |
String | active page |
updatePageSizeClick(event)
- Source:
Updates page size according to value of selected option
Parameters:
Name | Type | Description |
---|---|---|
event |
Event | active page |
updatePageSizeSelect(param)
- Source:
Calls 'updatePageSize'
with select page as a parameter
Parameters:
Name | Type | Description |
---|---|---|
param |
Event | event object with target element |