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.

Parameters:

  • id - identifier, passed in BX.Main.Popup;
  • types - array with descriptions of field types, the same 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 after clicking the field type.
static getDefaultPopupOptions(): Object Method returns set of default parameters for popup.
open(callback: function): void Method shows popup.
  • callback - callback, displayed after clicking at the field type.
render(onItemClick): Element Renders popup content.
  • onItemClick - callback after clicking at field type.


© «Bitrix24», 2001-2024