Documentation

rpa.fieldspopup

Extension showing user field list with checkmarks.

BX.Rpa.FieldsPopup

Methods

Method Description Available from version
constructor(id: string, fields: Array, title: string) Constructor. Parameters:
  • id - popup string identifier
  • fields - array of fields where list for each field must contain
    • title - field title
    • name - field code
    • checked - true, if checkbox must be checked
getPopup(onSave: Function): Popup Returns a popup.
getButtons(onSave: Function): Array Returns array of buttons for popup.
getContent(): Element Returns node with contents for popup.
renderField({title, name, checked}): string Renders node with single field
show(): Promise Shows popup. Returns Promise, permitted when closing popup.
  • When popup has closed when clicking on the button "Cancel", then resolve receives false.
  • When popup has closed when clicking on the button "Save", then resolve receives Set with codes of selected fields
getSelectedFields(): Set Returns field with selected fields code.
close() Closes popup.


© «Bitrix24», 2001-2024
Up