API svyPopupFilter
Classes
SvyCheckFilter ⇐ AbstractPopupFilter
SvyDateFilter ⇐ AbstractPopupFilter
SvyIntegerFilter ⇐ AbstractPopupFilter
SvyNumberFilter ⇐ AbstractPopupFilter
SvySelectFilter ⇐ AbstractPopupFilter
SvyTokenFilter ⇐ AbstractPopupFilter
Functions
applyLocaleStrings(formName, formType)
Applies the locale strings set on svyToolbarFilter.TOOLBAR_LOCALE to the matching elements for the given form identifier which is one of TOOLBAR_LOCALE's main properties
createCheckFilter() ⇒ SvyCheckFilter
createDateFilter() ⇒ SvyDateFilter
createIntegerFilter() ⇒ SvyIntegerFilter
createNumberFilter() ⇒ SvyNumberFilter
createSelectFilter(dataProvider, lookup) ⇒ SvySelectFilte
createTokenFilter() ⇒ SvyTokenFilter
getVersion() ⇒ String
Gets the version of this module
AbstractPopupFilter
.createPopUp(callback) ⇒
plugins.window.FormPopup
.getDataProvider() ⇒
String
.getID() ⇒
String
.getOperator() ⇒
String
.getParams() ⇒
Array
.getState() ⇒
Object
.getText() ⇒
String
.getValues() ⇒
Array
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>
|Array.<(String|Date|Number)>
.showWindow(win, [callback]) ⇒
[ 'Array' ].<(String|Date|Number)>
abstractPopupFilter.addParam(param)
Add a params to be added into the onSelect callback arguments
param
Object
abstractPopupFilter.clearParams()
Clear the params
abstractPopupFilter.createPopUp(callback) ⇒ plugins.window.FormPopup
plugins.window.FormPopup
Creates and returns the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
abstractPopupFilter.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒ JSWindow
JSWindow
Returns: JSWindow
- returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
[x]
Number
[y]
Number
[width]
Number
The width of the pop-up. Optional. Default is component width
[height]
Number
The height of the pop-up. Optional. Default is form height.
[jsWindowType]
Number
Type of window; should be an option of JSWindow, Default JSWindow.MODAL_DIALOG
abstractPopupFilter.getDataProvider() ⇒ String
String
Gets the popupFilter dataprovider
abstractPopupFilter.getID() ⇒ String
String
Gets the filter name
abstractPopupFilter.getOperator() ⇒ String
String
abstractPopupFilter.getParams() ⇒ Array
Array
abstractPopupFilter.getState() ⇒ Object
Object
abstractPopupFilter.getText() ⇒ String
String
Gets the popupFilter text
abstractPopupFilter.getValues() ⇒ Array
Array
abstractPopupFilter.removeParam(index)
Removes a param at the specified index
index
Number
abstractPopupFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
AbstractPopupFilter
jsonState
Object
abstractPopupFilter.setDataProvider(dataProvider)
Sets the popupFilter dataprovider
dataProvider
String
abstractPopupFilter.setOperator(operator)
operator
String
a value from scopes.svyPopupFilter.OPERATOR
abstractPopupFilter.setRendererForm(popupFilterForm)
popupFilterForm
abstractPopupFilter.setText(text)
Sets the popupFilter text
text
String
abstractPopupFilter.setValues(values)
values
Array
abstractPopupFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ Array.<JSRecord>
| Array.<(String|Date|Number)>
Array.<JSRecord>
| Array.<(String|Date|Number)>
Shows the popupFilter in a modal Window
Returns: Array.<JSRecord>
| Array.<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
[x]
Number
[y]
Number
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
abstractPopupFilter.showPopUp(callback, target, [width], [height])
Shows the popupFilter
callback
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
target
RuntimeComponent
The component to show relative to
[width]
Number
The width of the popupFilter. Optional. Default is same as target component
[height]
Number
The height of the popupFilter. Optional. Default is implementation-specifc.
abstractPopupFilter.showWindow(win, [callback]) ⇒ [ 'Array' ].<(String|Date|Number)>
[ 'Array' ].<(String|Date|Number)>
Shows the popupFilter in a Window
Returns: [ 'Array' ].<(String|Date|Number)>
- returns the selected records; if the popupFilterDataprovider has been set instead it returns the popupFilterDataprovider values on the selected records. Returns null if the window is closed without a selection or an empty selection
win
JSWindow
the JSWindow object to show
[callback]
function
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String
SvyCheckFilter ⇐ AbstractPopupFilter
AbstractPopupFilter
Extends: AbstractPopupFilter
SvyCheckFilter ⇐
AbstractPopupFilter
.createPopUp(callback) ⇒
plugins.window.FormPopup
.getDataProvider() ⇒
<String