lib/provider/camunda/element-templates/CustomElementsPropertiesActivator.js
/**
 * Decides what entries are visible and editable. When an element template is applied only entries
 * in the element template tab are visible. Override this behavior through a properties activator
 * with higher priority or by specifying `entriesVisible`.
 *
 * @param {EventBus} eventBus
 * @param {ElementTemplates} elementTemplates
 */
Decides what entries are visible and editable. When an element template is applied only entries
in the element template tab are visible. Override this behavior through a properties activator
with higher priority or by specifying `entriesVisible`.


Decides what entries are visible and editable . When an element template is applied only entries in the element template tab are visible . Override this behavior through a properties activator with higher priority or by specifying ` entriesVisible ` .
function CustomElementsPropertiesActivator(eventBus, elementTemplates) {
  PropertiesActivator.call(this, eventBus, HIGHER_PRIORITY);
  this.isEntryVisible = function(element, entry, group, tab) {
    var template = getTemplate(element, elementTemplates),
        templateId = getTemplateId(element);
    if (templateId && !isEntryVisible(entry, tab, template)) {
      return false;
    }
  };
  this.isPropertyEditable = function(propertyName, element, entry, group, tab) {
    var template = getTemplate(element, elementTemplates);
    if (template && !isEntryEditable(entry, template)) {
      return false;
    }
  };
}
function CustomElementsPropertiesActivator ( eventBus , elementTemplates ) { PropertiesActivator . call ( this , eventBus , HIGHER_PRIORITY ) ; this . isEntryVisible = function ( element , entry , group , tab ) { var template = getTemplate ( element , elementTemplates ) , templateId = getTemplateId ( element ) ; if ( templateId && ! isEntryVisible ( entry , tab , template ) ) { return false ; } } ; this . isPropertyEditable = function ( propertyName , element , entry , group , tab ) { var template = getTemplate ( element , elementTemplates ) ; if ( template && ! isEntryEditable ( entry , template ) ) { return false ; } } ; }
Decides what entries are visible and editable.
Decides what entries are visible and editable .