finos / waltz

Enterprise Information Service
https://waltz.finos.org
Apache License 2.0
179 stars 128 forks source link

Extract inline 'mini' action bars into widget #3330

Open davidwatkins73 opened 6 years ago

davidwatkins73 commented 6 years ago

Something like:

          <span ng-repeat="action in diagram.actions">
                        <a ng-click="action.execute(diagram)"
                           class="clickable">
                            <waltz-icon name="{{ action.icon }}"></waltz-icon>
                            <span ng-bind="action.name"></span>
                            <span ng-if="!$last"> | </span>
                        </a>
                    </span>

Ideally we should have hover highlights etc. to make it look polished.

Known usages:

e.g.

image

davidwatkins73 commented 6 years ago

Should take an array of actions like:

[ 
  { 
    name: 'Clone', 
    icon: 'clone',
    execute: () => {}, 
    description: 'blah'  // should be a popover if present
  } 
]
davidwatkins73 commented 4 years ago

This is probably not a small-change item. But is hopefully one of low complexity but then requires carefully replacing existing action bars with the newly developed one.