material icon indicating copy to clipboard operation
material copied to clipboard

FAB speed dial does not support ng-repeat for fab actions

Open hkgrani opened this issue 11 years ago • 8 comments

Have a look at http://codepen.io/hkgrani/pen/YXQryy

Action buttons generated from ng-repeat are always visible

hkgrani avatar Jun 11 '15 12:06 hkgrani

+1 Having the same issue

ghost avatar Jun 11 '15 17:06 ghost

+1

Frank3K avatar Jun 13 '15 07:06 Frank3K

That would be a good idea to fix that before 0.10.0 release; or is that too late ? I think static content for a FABSpeedDial is not of a great use....

3Pi avatar Jun 16 '15 13:06 3Pi

A temporarily workaround that is working in my app is wrapping the md-buttons in some divs with class = md-fab-action-tiem , e.g.

<md-fab-actions>
          <div class="md-fab-action-item" layout="column">
            <md-button ng-repeat="action in demo.actions" aria-label="{{action}}" class="md-fab md-raised md-mini">
              <md-icon md-svg-src="img/icons/{{action}}.svg"></md-icon>
            </md-button>
          </div>
        </md-fab-actions>

I made another codepen : http://codepen.io/hkgrani/pen/yNoGpV For this one however the buttons appear from the bottom of the screen instead of the main fab button

hkgrani avatar Jun 17 '15 09:06 hkgrani

Thanks for the hint : I just added the md-fab-action-item class to the md-button and the result is OK ! BTW, CSS of master version seems to be broken: all my icons if FAB buttons are too high...

3Pi avatar Jun 17 '15 13:06 3Pi

@topherfangio

Why is this closed? I just updated to the latest master and still having the issue (not using the workaround posted)

ghost avatar Jun 29 '15 22:06 ghost

Hi @robertbaker, this issue isn't closed. It still says "Open" at the top left. I closed a duplicate issue (#3275) because this one had more discussion/examples.

Where are you seeing it as being closed?

topherfangio avatar Jun 30 '15 01:06 topherfangio

So, is it possible to be repeated, like:

<list ng-repeat="...">
    <md-fab-speed-dial md-open="item.isOpen" md-direction="left" ng-class="md-scale">
        <md-fab-trigger>
            ...
        </md-fab-trigger>
        <md-fab-actions>
            ...
        </md-fab-actions>
    </md-fab-speed-dial>
<list>

rochapablo avatar Feb 05 '16 22:02 rochapablo