API svyPopupFilter - Servoy/svyPopupFilter GitHub Wiki
- AbstractPopupFilter
-
SvyCheckFilter ⇐
AbstractPopupFilter -
SvyDateFilter ⇐
AbstractPopupFilter -
SvyIntegerFilter ⇐
AbstractPopupFilter -
SvyNumberFilter ⇐
AbstractPopupFilter -
SvySelectFilter ⇐
AbstractPopupFilter -
SvyTokenFilter ⇐
AbstractPopupFilter
- 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) ⇒
SvySelectFilter -
createTokenFilter() ⇒
SvyTokenFilter -
getVersion() ⇒
String -
Gets the version of this module
-
AbstractPopupFilter
- .addParam(param)
- .clearParams()
-
.createPopUp(callback) ⇒
plugins.window.FormPopup -
.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒
JSWindow -
.getDataProvider() ⇒
String -
.getID() ⇒
String -
.getOperator() ⇒
String -
.getParams() ⇒
Array -
.getState() ⇒
Object -
.getText() ⇒
String -
.getValues() ⇒
Array - .removeParam(index)
-
.restoreState(jsonState) ⇒
AbstractPopupFilter - .setDataProvider(dataProvider)
- .setOperator(operator)
- .setRendererForm(popupFilterForm)
- .setText(text)
- .setValues(values)
-
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>|Array.<(String|Date|Number)> - .showPopUp(callback, target, [width], [height])
-
.showWindow(win, [callback]) ⇒
[ 'Array' ].<(String|Date|Number)>
Add a params to be added into the onSelect callback arguments
| Param | Type |
|---|---|
| param | Object |
Clear the params
Creates and returns the popupFilter
| Param | Type | Description |
|---|---|---|
| callback | function |
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
Returns: JSWindow - returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
| Param | Type | Description |
|---|---|---|
| [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 |
Gets the popupFilter dataprovider
Gets the filter name
Gets the popupFilter text
Removes a param at the specified index
| Param | Type |
|---|---|
| index | Number |
abstractPopupFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
| Param | Type |
|---|---|
| jsonState | Object |
Sets the popupFilter dataprovider
| Param | Type |
|---|---|
| dataProvider | String |
| Param | Type | Description |
|---|---|---|
| operator | String |
a value from scopes.svyPopupFilter.OPERATOR |
| Param | Type |
|---|---|
| popupFilterForm |
RuntimeForm.<AbstractPopupFilter> | RuntimeForm.<AbstractLookup>
|
Sets the popupFilter text
| Param | Type |
|---|---|
| text | String |
| Param | Type |
|---|---|
| values | Array |
abstractPopupFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ 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
| Param | Type | Description |
|---|---|---|
| [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. |
Shows the popupFilter
| Param | Type | Description |
|---|---|---|
| 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. |
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
| Param | Type | Description |
|---|---|---|
| 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
Extends: AbstractPopupFilter
-
SvyCheckFilter ⇐
AbstractPopupFilter- .addParam(param)
- .clearParams()
-
.createPopUp(callback) ⇒
plugins.window.FormPopup -
.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒
JSWindow -
.getDataProvider() ⇒
String -
.getID() ⇒
String -
.getOperator() ⇒
String -
.getParams() ⇒
Array -
.getState() ⇒
Object -
.getText() ⇒
String -
.getValues() ⇒
Array - .removeParam(index)
-
.restoreState(jsonState) ⇒
AbstractPopupFilter - .setDataProvider(dataProvider)
- .setOperator(operator)
- .setRendererForm(popupFilterForm)
- .setText(text)
- .setValues(values)
-
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>|Array.<(String|Date|Number)> - .showPopUp(callback, target, [width], [height])
-
.showWindow(win, [callback]) ⇒
[ 'Array' ].<(String|Date|Number)>
Add a params to be added into the onSelect callback arguments
| Param | Type |
|---|---|
| param | Object |
Clear the params
Creates and returns the popupFilter
| Param | Type | Description |
|---|---|---|
| callback | function |
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
Returns: JSWindow - returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
| Param | Type | Description |
|---|---|---|
| [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 |
Gets the popupFilter dataprovider
Gets the filter name
Gets the popupFilter text
Removes a param at the specified index
| Param | Type |
|---|---|
| index | Number |
svyCheckFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
| Param | Type |
|---|---|
| jsonState | Object |
Sets the popupFilter dataprovider
| Param | Type |
|---|---|
| dataProvider | String |
| Param | Type | Description |
|---|---|---|
| operator | String |
a value from scopes.svyPopupFilter.OPERATOR |
| Param | Type |
|---|---|
| popupFilterForm |
RuntimeForm.<AbstractPopupFilter> | RuntimeForm.<AbstractLookup>
|
Sets the popupFilter text
| Param | Type |
|---|---|
| text | String |
| Param | Type |
|---|---|
| values | Array |
svyCheckFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ 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
| Param | Type | Description |
|---|---|---|
| [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. |
Shows the popupFilter
| Param | Type | Description |
|---|---|---|
| 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. |
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
| Param | Type | Description |
|---|---|---|
| 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 |
SvyDateFilter ⇐ AbstractPopupFilter
Extends: AbstractPopupFilter
-
SvyDateFilter ⇐
AbstractPopupFilter- .addParam(param)
- .clearParams()
-
.createPopUp(callback) ⇒
plugins.window.FormPopup -
.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒
JSWindow -
.getDataProvider() ⇒
String -
.getID() ⇒
String -
.getOperator() ⇒
String -
.getParams() ⇒
Array -
.getState() ⇒
Object -
.getText() ⇒
String -
.getValues() ⇒
Array - .removeParam(index)
-
.restoreState(jsonState) ⇒
AbstractPopupFilter - .setDataProvider(dataProvider)
- .setOperator(operator)
- .setRendererForm(popupFilterForm)
- .setText(text)
- .setValues(values)
-
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>|Array.<(String|Date|Number)> - .showPopUp(callback, target, [width], [height])
-
.showWindow(win, [callback]) ⇒
[ 'Array' ].<(String|Date|Number)>
Add a params to be added into the onSelect callback arguments
| Param | Type |
|---|---|
| param | Object |
Clear the params
Creates and returns the popupFilter
| Param | Type | Description |
|---|---|---|
| callback | function |
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
Returns: JSWindow - returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
| Param | Type | Description |
|---|---|---|
| [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 |
Gets the popupFilter dataprovider
Gets the filter name
Gets the popupFilter text
Removes a param at the specified index
| Param | Type |
|---|---|
| index | Number |
svyDateFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
| Param | Type |
|---|---|
| jsonState | Object |
Sets the popupFilter dataprovider
| Param | Type |
|---|---|
| dataProvider | String |
| Param | Type | Description |
|---|---|---|
| operator | String |
a value from scopes.svyPopupFilter.OPERATOR |
| Param | Type |
|---|---|
| popupFilterForm |
RuntimeForm.<AbstractPopupFilter> | RuntimeForm.<AbstractLookup>
|
Sets the popupFilter text
| Param | Type |
|---|---|
| text | String |
| Param | Type |
|---|---|
| values | Array |
svyDateFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ 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
| Param | Type | Description |
|---|---|---|
| [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. |
Shows the popupFilter
| Param | Type | Description |
|---|---|---|
| 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. |
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
| Param | Type | Description |
|---|---|---|
| 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 |
SvyIntegerFilter ⇐ AbstractPopupFilter
Extends: AbstractPopupFilter
-
SvyIntegerFilter ⇐
AbstractPopupFilter- .addParam(param)
- .clearParams()
-
.createPopUp(callback) ⇒
plugins.window.FormPopup -
.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒
JSWindow -
.getDataProvider() ⇒
String -
.getID() ⇒
String -
.getOperator() ⇒
String -
.getParams() ⇒
Array -
.getState() ⇒
Object -
.getText() ⇒
String -
.getValues() ⇒
Array - .removeParam(index)
-
.restoreState(jsonState) ⇒
AbstractPopupFilter - .setDataProvider(dataProvider)
- .setOperator(operator)
- .setRendererForm(popupFilterForm)
- .setText(text)
- .setValues(values)
-
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>|Array.<(String|Date|Number)> - .showPopUp(callback, target, [width], [height])
-
.showWindow(win, [callback]) ⇒
[ 'Array' ].<(String|Date|Number)>
Add a params to be added into the onSelect callback arguments
| Param | Type |
|---|---|
| param | Object |
Clear the params
Creates and returns the popupFilter
| Param | Type | Description |
|---|---|---|
| callback | function |
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
Returns: JSWindow - returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
| Param | Type | Description |
|---|---|---|
| [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 |
Gets the popupFilter dataprovider
Gets the filter name
Gets the popupFilter text
Removes a param at the specified index
| Param | Type |
|---|---|
| index | Number |
svyIntegerFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
| Param | Type |
|---|---|
| jsonState | Object |
Sets the popupFilter dataprovider
| Param | Type |
|---|---|
| dataProvider | String |
| Param | Type | Description |
|---|---|---|
| operator | String |
a value from scopes.svyPopupFilter.OPERATOR |
| Param | Type |
|---|---|
| popupFilterForm |
RuntimeForm.<AbstractPopupFilter> | RuntimeForm.<AbstractLookup>
|
Sets the popupFilter text
| Param | Type |
|---|---|
| text | String |
| Param | Type |
|---|---|
| values | Array |
svyIntegerFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ 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
| Param | Type | Description |
|---|---|---|
| [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. |
Shows the popupFilter
| Param | Type | Description |
|---|---|---|
| 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. |
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
| Param | Type | Description |
|---|---|---|
| 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 |
SvyNumberFilter ⇐ AbstractPopupFilter
Extends: AbstractPopupFilter
-
SvyNumberFilter ⇐
AbstractPopupFilter- .addParam(param)
- .clearParams()
-
.createPopUp(callback) ⇒
plugins.window.FormPopup -
.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒
JSWindow -
.getDataProvider() ⇒
String -
.getID() ⇒
String -
.getOperator() ⇒
String -
.getParams() ⇒
Array -
.getState() ⇒
Object -
.getText() ⇒
String -
.getValues() ⇒
Array - .removeParam(index)
-
.restoreState(jsonState) ⇒
AbstractPopupFilter - .setDataProvider(dataProvider)
- .setOperator(operator)
- .setRendererForm(popupFilterForm)
- .setText(text)
- .setValues(values)
-
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>|Array.<(String|Date|Number)> - .showPopUp(callback, target, [width], [height])
-
.showWindow(win, [callback]) ⇒
[ 'Array' ].<(String|Date|Number)>
Add a params to be added into the onSelect callback arguments
| Param | Type |
|---|---|
| param | Object |
Clear the params
Creates and returns the popupFilter
| Param | Type | Description |
|---|---|---|
| callback | function |
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
Returns: JSWindow - returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
| Param | Type | Description |
|---|---|---|
| [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 |
Gets the popupFilter dataprovider
Gets the filter name
Gets the popupFilter text
Removes a param at the specified index
| Param | Type |
|---|---|
| index | Number |
svyNumberFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
| Param | Type |
|---|---|
| jsonState | Object |
Sets the popupFilter dataprovider
| Param | Type |
|---|---|
| dataProvider | String |
| Param | Type | Description |
|---|---|---|
| operator | String |
a value from scopes.svyPopupFilter.OPERATOR |
| Param | Type |
|---|---|
| popupFilterForm |
RuntimeForm.<AbstractPopupFilter> | RuntimeForm.<AbstractLookup>
|
Sets the popupFilter text
| Param | Type |
|---|---|
| text | String |
| Param | Type |
|---|---|
| values | Array |
svyNumberFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ 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
| Param | Type | Description |
|---|---|---|
| [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. |
Shows the popupFilter
| Param | Type | Description |
|---|---|---|
| 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. |
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
| Param | Type | Description |
|---|---|---|
| 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 |
SvySelectFilter ⇐ AbstractPopupFilter
Extends: AbstractPopupFilter
-
SvySelectFilter ⇐
AbstractPopupFilter- .addParam(param)
- .clearParams()
-
.createPopUp(callback) ⇒
plugins.window.FormPopup -
.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒
JSWindow -
.getDataProvider() ⇒
String -
.getID() ⇒
String -
.getLookup() ⇒
scopes.svyLookup.Lookup -
.getOperator() ⇒
String -
.getParams() ⇒
Array -
.getState() ⇒
Object -
.getText() ⇒
String -
.getValues() ⇒
Array - .removeParam(index)
-
.restoreState(jsonState) ⇒
AbstractPopupFilter - .setDataProvider(dataProvider)
- .setOperator(operator)
- .setRendererForm(popupFilterForm)
- .setText(text)
- .setValues(values)
-
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>|Array.<(String|Date|Number)> - .showPopUp(callback, target, [width], [height])
-
.showWindow(win, [callback]) ⇒
Array.<JSRecord>|Array.<(String|Date|Number)> - new SvySelectFilter(dataProvider, lookup)
Add a params to be added into the onSelect callback arguments
| Param | Type |
|---|---|
| param | Object |
Clear the params
Creates and returns the popupFilter
Overrides: createPopUp
| Param | Type | Description |
|---|---|---|
| callback | function |
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
Overrides: createWindow
Returns: JSWindow - returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
| Param | Type | Description |
|---|---|---|
| [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 |
Gets the popupFilter dataprovider
Gets the filter name
Overrides: getState
Gets the popupFilter text
Removes a param at the specified index
| Param | Type |
|---|---|
| index | Number |
svySelectFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
Overrides: restoreState
| Param | Type |
|---|---|
| jsonState | Object |
Sets the popupFilter dataprovider
| Param | Type |
|---|---|
| dataProvider | String |
| Param | Type | Description |
|---|---|---|
| operator | String |
a value from scopes.svyPopupFilter.OPERATOR |
| Param | Type |
|---|---|
| popupFilterForm |
RuntimeForm.<AbstractPopupFilter> | RuntimeForm.<AbstractLookup>
|
Sets the popupFilter text
| Param | Type |
|---|---|
| text | String |
Overrides: setValues
| Param | Type |
|---|---|
| values | Array |
svySelectFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ Array.<JSRecord> | Array.<(String|Date|Number)>
Shows the popupFilter in a modal Window
Overrides: showModalWindow
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
| Param | Type | Description |
|---|---|---|
| [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. |
Shows the popupFilter
Overrides: showPopUp
| Param | Type | Description |
|---|---|---|
| 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. |
Shows the popupFilter in a Window
Overrides: showWindow
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
| Param | Type | Description |
|---|---|---|
| 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<String |
| Param | Type | Description |
|---|---|---|
| dataProvider | String |
will override the lookupDataProvider |
| lookup | scopes.svyLookup.Lookup |
SvyTokenFilter ⇐ AbstractPopupFilter
Extends: AbstractPopupFilter
-
SvyTokenFilter ⇐
AbstractPopupFilter- .addParam(param)
- .clearParams()
-
.createPopUp(callback) ⇒
plugins.window.FormPopup -
.createWindow([x], [y], [width], [height], [jsWindowType]) ⇒
JSWindow -
.getDataProvider() ⇒
String -
.getID() ⇒
String -
.getOperator() ⇒
String -
.getParams() ⇒
Array -
.getState() ⇒
Object -
.getText() ⇒
String -
.getValues() ⇒
Array - .removeParam(index)
-
.restoreState(jsonState) ⇒
AbstractPopupFilter - .setDataProvider(dataProvider)
- .setOperator(operator)
- .setRendererForm(popupFilterForm)
- .setText(text)
- .setValues(values)
-
.showModalWindow([callback], [x], [y], [width], [height]) ⇒
Array.<JSRecord>|Array.<(String|Date|Number)> - .showPopUp(callback, target, [width], [height])
-
.showWindow(win, [callback]) ⇒
[ 'Array' ].<(String|Date|Number)>
Add a params to be added into the onSelect callback arguments
| Param | Type |
|---|---|
| param | Object |
Clear the params
Creates and returns the popupFilter
| Param | Type | Description |
|---|---|---|
| callback | function |
The function that will be called when a selection is made; the callback returns the following arguments: {Array} record, {Array<String |
Returns: JSWindow - returns a JSWindow which can be used to show the popupFilter in it using popupFilter.showWindow(window)
| Param | Type | Description |
|---|---|---|
| [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 |
Gets the popupFilter dataprovider
Gets the filter name
Gets the popupFilter text
Removes a param at the specified index
| Param | Type |
|---|---|
| index | Number |
svyTokenFilter.restoreState(jsonState) ⇒ AbstractPopupFilter
| Param | Type |
|---|---|
| jsonState | Object |
Sets the popupFilter dataprovider
| Param | Type |
|---|---|
| dataProvider | String |
| Param | Type | Description |
|---|---|---|
| operator | String |
a value from scopes.svyPopupFilter.OPERATOR |
| Param | Type |
|---|---|
| popupFilterForm |
RuntimeForm.<AbstractPopupFilter> | RuntimeForm.<AbstractLookup>
|
Sets the popupFilter text
| Param | Type |
|---|---|
| text | String |
| Param | Type |
|---|---|
| values | Array |
svyTokenFilter.showModalWindow([callback], [x], [y], [width], [height]) ⇒ 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
| Param | Type | Description |
|---|---|---|
| [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. |
Shows the popupFilter
| Param | Type | Description |
|---|---|---|
| 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. |
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
| Param | Type | Description |
|---|---|---|
| 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 |
Properties
| Name | Default |
|---|---|
| filterPopupMenu | {"addFilter":"Add filter"} |
| svyCheckPopupFilter | {"labelChecked":"Yes","labelUnchecked":"No"} |
| svyDatePopupFilter | {"labelTitle":"Date","labelToday":"Today","labelTomorrow":"Tomorrow","labelThisWeek":"This week","labelNextWeek":"Next week","labelThisMonth":"This month","labelNextMonth":"Next month","labelThisYear":"This year","labelLastYear":"Last year","operator":""} |
| svyTokenPopupFilter | {"searchbox":"","labelRemoveAll":"Remove all"} |
| svySelectPopupFilter | {"searchText":"","labelSelectAll":"Select all","labelDeselectAll":"Deselect all"} |
| svyIntegerPopupFilter | {"labelTitle":"Type filter value...","labelEqualTo":"Equal to","labelGreater":"Bigger than","labelSmaller":"Smaller than","labelBetween":"Between"} |
| svyNumberPopupFilter | {"labelTitle":"Type filter value...","labelEqualTo":"Equal to","labelGreater":"Bigger than","labelSmaller":"Smaller than","labelBetween":"Between"} |
Properties
| Name | Default | Description |
|---|---|---|
| IS_NULL | isNull |
|
| NOT_NULL | !isNull |
|
| EQUALS | eq |
|
| EQUALS_OR_NULL | ^ |
|
| LIKE | like |
All values starting with search input e.g. LIKE SEARCH_WORD% |
| LIKE_CONTAINS | like_contains |
All values containing search input e.g. LIKE %SEARCH_WORD% |
| GREATER_EQUAL | ge |
|
| GREATER_THEN | gt |
|
| SMALLER_EQUAL | le |
|
| SMALLER_THEN | lt |
|
| BETWEEN | BETWEEN |
|
| IS_IN | IN |
Properties
| Name | Default |
|---|---|
| MUTLI_SELECT_ICON_COLUMN_WIDTH | 50 |
| MULTI_SELECT_SHOW_TILE_HEADERS | true |
| CLOSE_ICON | fa fa-close |
| REMOVE_ICON | fa fa-trash |
| EXCLUDE_ICON | fas fa-minus-circle |
| INCLUDE_ICON | fas fa-check-circle |
| OPEN_FILTER_ICON | fas fa-angle-down |
| REMOVE_FILTER_ICON | fas fa-times |
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
| Param | Type |
|---|---|
| formName | String |
| formType | String |
createCheckFilter() ⇒ SvyCheckFilter
createDateFilter() ⇒ SvyDateFilter
createIntegerFilter() ⇒ SvyIntegerFilter
createNumberFilter() ⇒ SvyNumberFilter
createSelectFilter(dataProvider, lookup) ⇒ SvySelectFilter
| Param | Type |
|---|---|
| dataProvider | String |
| lookup | scopes.svyLookup.Lookup |
createTokenFilter() ⇒ SvyTokenFilter
Gets the version of this module
Returns: String - the version of the module using the format Major.Minor.Revision