APIs

Show:

Methods

_confirmDeleteRows

() private

Delete rows when it confirmed.

_createMenuSubitems

(
  • itemsNameList
  • icon
)

Creating menu subitems.

Parameters:

  • itemsNameList Object

    Object with items names as keys.

  • icon String

    Icon class for menu items.

_rowsDeleted

(
  • componentName
  • count
)

Handler for "Olv rows deleted" event in objectlistview.

Parameters:

  • componentName String

    The name of objectlistview component

  • count Integer

    Number of deleted records

_rowSelected

(
  • componentName
  • record
  • count
  • checked
  • recordWithKey
)
private

Event handler for "row has been selected" event in objectlistview.

Parameters:

  • componentName String

    The name of objectlistview component

  • record DS.Model

    The model corresponding to selected row in objectlistview

  • count Number

    Count of selected rows in objectlistview

  • checked Boolean

    Current state of row in objectlistview (checked or not)

  • recordWithKey Object

    The model wrapper with additional key corresponding to selected row

_updateNamedAdvLimits

(
  • componentName
)

Refresh current adv limits list.

Parameters:

  • componentName String

    The name of objectlistview component

actions.createNew

() public

Handles action from object-list-view when no handler for this component is defined.

actions.customButtonAction

(
  • action
)
public

Action for custom button.

Parameters:

actions.delete

() public

Delete selected rows.

actions.filterByAnyMatch

() public

Filters the content by "Filter by any match" field value.

actions.keyDownFilterAction

() public

Checks if "Enter" button was pressed. If "Enter" button was pressed then filters the content by "Filter by any match" field value.

actions.onExportMenuItemClick

(
  • e
)
public

Handler click on flexberry-menu.

Parameters:

  • e jQuery.Event

    jQuery.Event by click on menu item

actions.onLimitMenuItemClick

(
  • e
)
public

Handler click on flexberry-menu of advLimits.

Parameters:

  • e jQuery.Event

    jQuery.Event by click on menu item

actions.onMenuItemClick

(
  • e
)
public

Handler click on flexberry-menu.

Parameters:

  • e jQuery.Event

    jQuery.Event by click on menu item

actions.refresh

() public

Handles action from object-list-view when no handler for this component is defined.

actions.removeFilter

() public

Remove filter from url.

actions.showConfigDialog

() public

Action to show confis dialog.

actions.showConfigDialog

() public

Action to show confis dialog.

actions.showExportDialog

() public

Action to show export dialog.

actions.showFiltersTool

() public

Action to show filters tool.

getTargetObjectByCondition.

(
  • condition
)
Null | Component | Controller

Returns that 'targetObject' (from 'targetObject's hierarchy) which satisfies a given condition.

let controller = this.getTargetObjectByCondition((targetObject) => {
                      return targetObject instanceof Controller;
                    });
                    

Parameters:

  • condition Function

    Callback-function, which will be called for each 'targetObject' in 'targetObject's hierarchy, until callback return true for one of them.

Returns:

Null | Component | Controller:

Target object which satisfies a given condition or null.

initProperty

(
  • options
)

Initializes component's property with recpect to following priority: 1 - template-defined parameters, 2 - applicaion configuration-defined parameters (JSON from ./config/environment by path defined in 'appConfigSettingsPath' property), 3 - component-defined defaults. Note! It is important to be declared as undefined for those component properties, which will be initialized through 'initProperty' call.

// ./config/environment.js.
                    module.exports = function(environment) {
                      var ENV = {
                        APP: {
                          components: {
                            myComponent: {
                              myComponentProperty: 'myComponentProperty config-defined default value',
                            }
                          }
                        }
                      };
                      return ENV;
                    };
                    
// /components/my-component.js
                    import FlexberryBaseComponent from 'ember-flexberry/flexberry-base-component';
                    
                    export default FlexberryBaseComponent.extend({
                      appConfigSettingsPath: 'APP.components.myComponent',
                    
                      myComponentProperty: undefined,
                    
                      init() {
                        this._super.apply(this, arguments);
                        this.initProperty({ propertyName: 'myComponentProperty', defaultValue: 'myComponentProperty default value' });
                      }
                    });
                    

Parameters:

  • options Object

    Method options.

    • propertyName String

      Component's property name.

    • defaultValue

      Component's property default value (from component defined default's).

onFailureSpeechRecognition

(
  • error
)

Callback failure speech recognition.

Parameters:

onSuccessSpeechRecognition

(
  • text
)

Callback success speech recognition.

Parameters:

showInfoModalDialog

(
  • infoCaption
  • infoContent
)
String

Shows info modal dialog.

Parameters:

  • infoCaption String

    Info caption (window header caption).

  • infoContent String

    Info content (window body content).

Returns:

String:

Info content.

Properties

_componentNameForModalWindow

String private

The name of the component for themodal window. If the flexberry-objectlistview component is used for the flexberry-lookup component, we must pass the name of the flexberry-lookup component to the modal window.

_errorModalDialog

JQueryObject private

Selected jQuery object, containing HTML of error modal dialog.

Default: null

_infoModalDialogCaption

String private

Caption to be displayed in info modal dialog. It will be displayed only if some info occurs.

Default: ''

_infoModalDialogContent

String private

Content to be displayed in info modal dialog. It will be displayed only if some info occurs.

Default: ''

advLimit

AdvLimitService

Service for managing advLimits for lists.

advLimitButton

Boolean

Flag to use advLimitButton button at toolbar.

Default: true

advLimitItems

Unknown

appConfig

Object

Application configuration (JSON from ./config/environment.js).

Default: null

appConfigSettings

Object

Component settings object from application configuration (part of JSON from ./config/environment.js). Part of appConfig related to appConfigSettingsPath.

Default: null

appConfigSettingsPath

String

Path to component's settings in application configuration (JSON from ./config/environment.js).

Default: 'APP.components.flexberryBaseComponent'

colsConfigButton

Boolean

Flag to use colsConfigButton button at toolbar.

Default: true

colsConfigMenu

Service

colsSettingsItems

Unknown

componentName

String

Used to link to objectListView with same componentName.

Default: ''

createNewButton

Boolean

Flag to use creation button at toolbar.

Default: false

currentController

Controller

Current controller.

Default: null

customButtonAction

String

Name of action to send out, action triggered by click on user button.

Default: 'customButtonAction'

customComponents

Array

See FlexberryObjectlistviewComponent/customComponents:property.

deleteButton

Boolean

Flag to use delete button at toolbar.

Default: false

dynamicProperties

Object

Component dynamic properties ({ componentPropertyName: value }). Used when component renders dynamically with ember {{component}} helper: {{component 'my-component' value=value dynamicProperties=myConponentProperties}}. In the end of component initialization its properties values will be replaced with values from this object.

Default: null

editFormRoute

String

Route for edit form by click row.

editInModal

Boolean private

Flag indicate when edit form must be open in modal window.

Default: false

enableCreateNewButton

Boolean

Flag to specify whether the create button is enabled.

Default: true

enableDeleteButton

Boolean

The flag to specify whether the delete button is enabled.

Default: true

exportExcelButton

Boolean

Flag indicates whether to show exportExcelButton button at toolbar.

Default: false

exportExcelItems

Unknown

filterButton

Boolean

Flag to use filter button at toolbar.

Default: false

filterByAnyMatchText

String

Stores the text from "Filter by any match" input field.

filterText

String

Used to specify default 'filter by any match' field text.

Default: null

inLookup

Boolean

Indicates that the flexberry-objectlistview component is used for the flexberry-lookup component.

Default: false

isDeleteButtonEnabled

Boolean

Flag shows enable-state of delete button. If there are selected rows button is enabled. Otherwise - not.

Default: false

listNamedExportSettings

Unknown

listNamedUserSettings

Unknown

lookupComponentName

String

The name of the flexberry-lookup component for which the flexberry-objectlistview component is used.

menus

Unknown

modelController

Object

Controller for model.

namedAdvLimits

Object

Current adv limits.

objectlistviewEventsService

Service

Service that triggers objectlistview events.

readonly

Boolean

Flag: indicates whether component is readonly.

Default: false

readonlyAttr

String | Undefined

Readonly HTML attribute following to the readonly query param. According to the W3C standard, returns 'readonly' if readonly is true and undefined otherwise.

refreshButton

Boolean

Flag to use refresh button at toolbar.

Default: false

relatedModel

DS.Model

Model to which current component's value is related.

Default: null

required

Boolean

Flag: indicates whether component is required.

Default: false

selectAll

Boolean

The flag to specify whether the select all button is on.

Default: true

showFiltersInModal

Boolean private

Flag used to display filters in modal.

Default: false