You are browsing the documentation for version 4.2 of OroCommerce, OroCRM and OroPlatform, which is no longer maintained. Security Support ends in January 2024. Read version 5.0 (the latest LTS version) of the Oro documentation to get the updated information.

See our Release Process documentation for more information on the currently supported and upcoming releases.

NumberEditorView ⇐ TextEditorView

Number cell content editor.

Column configuration examples:

      enable: true
    # <grid configuration> goes here
      # Sample 1. Mapped by number frontend type
        frontend_type: <number/integer/decimal/currency>
      # Sample 2. Full configuration
            view: oroform/js/app/views/editor/number-editor-view
              placeholder: '<placeholder>'
              css_class_name: '<class-name>'
            NotBlank: ~
              route: '<route>'
                 - '<parameter1>'
                 - '<parameter2>'

Options in YML

Column Option Name Description
inline_editing.editor.view_options.placeholder Optional. Placeholder translation key for an empty element
inline_editing.editor.view_options.placeholder_raw Optional. Raw placeholder value
inline_editing.editor.view_options.css_class_name Optional. Additional css class name for editor view DOM elements
inline_editing.validation_rules Optional. Validation rules. See JS Validation topic for more information
inline_editing.save_api_accessor Optional. Sets accessor module, route, parameters etc.

Constructor Parameters

Extends: TextEditorView

Param Type Description
options Object Options container
options.model Object Current row model
options.className string CSS class name for editor element
options.fieldName string Field name to edit in model
options.placeholder string Placeholder translation key for an empty element
options.placeholder_raw string Raw placeholder value. It overrides placeholder translation key
options.validationRules Object Validation rules. See JS Validation
options.value string initial value of edited field