Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need toogle float button instead of hover float button #22

Open
dinumarathe opened this issue Feb 2, 2017 · 1 comment
Open

Need toogle float button instead of hover float button #22

dinumarathe opened this issue Feb 2, 2017 · 1 comment

Comments

@dinumarathe
Copy link

dinumarathe commented Feb 2, 2017

im trying to use float button in my hybrid app
I have on hover float button (Material button) but i want this action on toogle action...

(https://codepad.co/snippet/0PNF4OPp)

@dinumarathe dinumarathe changed the title how can convert this hover float button to toggle (click) button for hybrid mobile screen Need toogle float button instead of hover float button Feb 2, 2017
@abdulwahabone
Copy link

abdulwahabone commented May 6, 2018

#####from the docs#####
All you need is to toggle data-mfb-state

I tried to create a code snip for you but i cant understand your code structure. I hope this helps.

#####Click toggling#####

To add click and touch support (and to support the open/close animation programmatically, more on this later) include the mfb.js file and reference it in the page. Finally set the data-mfb-toggle attribute to click, along with the initial state you want the menu to appear at load time, using the data-mfb-state attribute. An example:

ul class="mfb-component--tl mfb-slidein" data-mfb-toggle="click" data-mfb-state="closed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants