ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

FAB list feature: labels and backdrop options

Open Manduro opened this issue 10 years ago • 33 comments

Feature request

It would be cool if the FAB list could support labels and an optional backdrop as mentioned here: https://github.com/driftyco/ionic/issues/5069#issuecomment-172681668

Example

Manduro avatar Oct 03 '16 09:10 Manduro

@speedfl sorry. When fab list is showing is it showing backdrop? I don't see code anywhere for backdrop. Sorry if I'm missing something...

ozexpert avatar Feb 03 '17 17:02 ozexpert

My label container has background-color: rgba(255, 255, 255, 0.5); So it is the backdrop. You have to implement exactly what i put (the ts file, the scss and the html)

speedfl avatar Feb 03 '17 17:02 speedfl

Hello all! While this is an awesome feature request it is not something that we plan on doing anytime soon. Because of this I am going to move this to our internal feature tracking repo for now as it is just "collecting dust" here. Once we decide to implement this I will move it back. Thanks everyone for using Ionic!

jgw96 avatar Feb 06 '17 21:02 jgw96

This issue was moved to driftyco/ionic-feature-requests#70

jgw96 avatar Feb 06 '17 21:02 jgw96

@speedfl I just upgraded my own implementation to yours and I really like it! Thanks for making the upgrades.

captaincole avatar Feb 06 '17 21:02 captaincole

@thielCole you are welcome :)

speedfl avatar Mar 04 '17 22:03 speedfl

+1

shyamal890 avatar Mar 06 '17 13:03 shyamal890

If needed: @thielCole and other https://github.com/speedfl/ionic-fab-label-backdrop

I made some updates. Extract in a component with event + same effect as ionic fab

speedfl avatar Apr 01 '17 17:04 speedfl

@jgw96 Hey Justin, why this issue is close without driftyco/ionic-feature-requests#70 accessible?

This is an important feature that significant improve the usability of the Fab button, just want to make sure it's not getting lost somewhere.

itrethan avatar Apr 02 '17 18:04 itrethan

Thanks @Bouzmine. Awesome!!!

lequyettien avatar Apr 15 '17 04:04 lequyettien

My 2 cents:

Adding a local variable to the ion-fab-list

<ion-fab right bottom #fab1>
    <button ion-fab><ion-icon name="add"></ion-icon></button>
    <ion-fab-list side="top" #fabList>
    <div *ngIf="fabList.classList.contains('fab-list-active')" class="backdrop" (click)="fab1.close();">
    </div>

The CSS: .backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.7); } Had to add z-index to button to be able to close it: button.fab.fab-md.fab-close-active { z-index: 1; }

aleksander351 avatar Nov 13 '17 09:11 aleksander351

@speedfl I'm sorry, I'm pretty unclear on how to use your code. All of the bracketed and parenthetical identifiers have me pretty confused. Can you give an example of it being used in practice? I get errors that say "an-input" isn't a property of my-menu, etc. Also, Ionic complains that anInput in mymenu.ts should be this.anInput.

kschultz1986 avatar Dec 20 '17 02:12 kschultz1986

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 01 '18 14:09 ionitron-bot[bot]