ui.bootstrap.contextMenu icon indicating copy to clipboard operation
ui.bootstrap.contextMenu copied to clipboard

Allow icons (as HTML) in menu item.

Open hoeni opened this issue 9 years ago • 1 comments

This way one can use icons in the menu elements like

      $scope.menuOptions = function(program) {
        return [
          [function() {return '<i class="fa fa-fw fa-pencil"></i> edit'},
            function ($itemScope) { console.log('edit') } ],
        ];
      };

If this shouldn't be the default I'd suggest a 4th parameter to each element containing options, to be open for future extensions:

      $scope.menuOptions = function(program) {
        return [
          [function() {return '<i class="fa fa-fw fa-pencil"></i> edit'},
            function ($itemScope) { console.log('edit') },
            true,
            {allowHtml: true}
          ],
        ];
      };

hoeni avatar Sep 01 '15 09:09 hoeni

I am working on a huge addition at the moment and a feature related to this will be on it.

SuricateCan avatar Oct 11 '15 07:10 SuricateCan