code: function (predicate, items) {
          var self = this, selector;
  
          self.contextToolbars = self.contextToolbars || [];
  
          // Convert selector to predicate
          if (typeof predicate == "string") {
            selector = predicate;
            predicate = function (elm) {
              return self.dom.is(elm, selector);
            };
          }
  
          self.contextToolbars.push({
            id: Uuid.uuid('mcet'),
            predicate: predicate,
            items: items
          });
        }
docs: Adds a contextual toolbar to be rendered when the selector matches.
  
  @method addContextToolbar
  @param {function/string} predicate Predicate that needs to return true if provided strings get converted into CSS predicates.
  @param {String/Array} items String or array with items to add to the context toolbar.