In addition to the configurable custom links, plugins can be used to add functionality to the Welcome application.

Plugin point

The Welcome application offers a front-end only plugin point.

Name: welcome.dashboard.

Plugins - 图1

Example

  1. var ngModule = angular.module('acme.welcome.plugin.sample', []);
  2. ngModule.config(['ViewsProvider', function(ViewsProvider) {
  3. ViewsProvider.registerDefaultView('welcome.dashboard', {
  4. id: 'welcome-dashboard-sample-plugin',
  5. label: 'Just a sample plugin',
  6. // this is how the HTML scaffolding should look like
  7. // in order to follow the styling of the page
  8. template: '<section class="col-xs-12"><div class="inner">' +
  9. '<header><h3 class="section-title">Sample plugin</h3></header>' +
  10. '<div class="inner">{{ content }}</div>' +
  11. '</div></section>',
  12. controller: ['$scope', function($scope) {
  13. $scope.content = 'Sample plugin content';
  14. }],
  15. priority: 50
  16. });
  17. }]);

原文: https://docs.camunda.org/manual/7.9/webapps/welcome/welcome-plugins/