Interface ListGridEditorCustomizer


public interface ListGridEditorCustomizer
Customizer for the edit FormItem shown in a ListGrid cell
  • Method Summary

    Modifier and Type
    Method
    Description
    This method fires when the editor for a cell in an editable grid is being displayed, and allows developers to customize the FormItem displayed to the user dynamically depending on the row being edited as well as just the field.
  • Method Details

    • getEditor

      FormItem getEditor(ListGridEditorContext context)
      This method fires when the editor for a cell in an editable grid is being displayed, and allows developers to customize the FormItem displayed to the user dynamically depending on the row being edited as well as just the field. The FormItem returned will be used as a template (properties block) for the item displayed to the user - as with ListGridField.setEditorType(FormItem) if applying event handlers to the item, the live item should be retrieved from the event object.

      For default behavior simply return the result of ListGridEditorContext.getDefaultProperties().

      Parameters:
      context - context object containing details of the cell being edited.
      Returns:
      template FormItem.