Documentation

Popup with list of field types

Popup with list of field types

BX.UI.UserFieldFactory.CreationMenu

Methods

Method Description Available from version
constructor((id: string, types: Array, params: Object)) Constructor.

Параметры:

  • id - identifier, passed in BX.Main.Popup;
  • types - array with descriptions of field types, as in Factory;
  • params - additional set of parameters for popup in format BX.Main.PopupOptions.
getId(): string Returns identifier.
getPopup(onItemClick = null): Popup Method returns object BX.Main.Popup.
  • onItemClick - callback, triggered after click on field type.
static getDefaultPopupOptions(): Object Returты set of default parameters for popup.
open(callback: function): void Method shows a popup window.
  • callback - callback, triggered after clicking on field type.
render(onItemClick): Element Renders popup content.
  • onItemClick - callback, triggered after clicking on field type.


© «Bitrix24», 2001-2024
Up