Documentation

Configurator

Object for the field settings form

BX.UI.UserFieldFactory.Configurator

Methods

Method Description Available from version
constructor(params: {}) Constructor.

Parameters :

  • userField - object UserField, for which the settings form is called которого показывается форма настройки;
  • onSave - callback after form is saved;
  • onCancel - callback after clicking on Cancel button.
render(): Element Renders settings form and returns DOM element with it.
saveField(): UserField Saves field parameters from the form and returns an object.
renderEnumeration(): Element Renders value variants for Listproperty type and returns DOM element.
addEnumInput(item: ?{}) Adds a new value variant in the list of Listproperty type.
  • item - object with value variant description
    • value - variant value;
    • id - identifier.
deleteEnumItem(item: EnumItem) Deletes a item value variant from the list.
  • item - object [`EnumItem`](enumitem.md).
renderOptions(): Element Renders checkboxes.
saveEnumeration(userField: UserField, enumItems: EnumItem[]) Saves variants for enumItems values in the object userField.


© «Bitrix24», 2001-2024