Page 1 of 2

Sliding Panel menu button with data-icon="bars"

Posted: Wed Nov 13, 2013 3:19 am
by kuvalda

I am designing a page with sliding panel menu that I would like to show/hide when user taps on the Menu button in the page header.

I would like to use the standard jquery bars icon for the Menu button (data-icon="bars"), however, it looks like I can't select that icon from the list of available button icons.

This icon comes with jquery css. Can you please advise how can I set this (or another custom icon) for a button?

Thank you.


Sliding Panel menu button with data-icon="bars"

Posted: Wed Nov 13, 2013 3:46 am
by Illya Stepanov

Hello,

Can you provide code example that you are using?


Sliding Panel menu button with data-icon="bars"

Posted: Wed Nov 13, 2013 7:00 pm
by kuvalda

This is the code that was generated from the UI builder:

code
<!-- Panel -->
<a data-role="button" name="Panel" dsid="Panel" class='ui-btn-left Home_Panel'
id="Home_Panel" data-corners="true" data-icon="grid" data-iconpos="left" x-apple-data-detectors="false"
data-inline='true' data-mini='true' data-theme="a" tabindex="3">
Menu
<&#47;a>
/code

If I try editing the code to set data-icon="bars" then I can see the new icon just fine, but the source gets out of sync with the UI builder so I can no longer use drag and drop.


Sliding Panel menu button with data-icon="bars"

Posted: Wed Nov 13, 2013 10:25 pm
by Alena Prykhodko

Add this attribute for Button in More properties option:
Image


Sliding Panel menu button with data-icon="bars"

Posted: Wed Nov 13, 2013 10:30 pm
by kuvalda

That was easy :) Thank you!


Sliding Panel menu button with data-icon="bars"

Posted: Sat Feb 08, 2014 7:03 pm
by m z

This seems to work okay with the flat-ui theme. However, it does not work with ios7 theme. The space for the icon is there, but you can't see the bars.


Sliding Panel menu button with data-icon="bars"

Posted: Mon Feb 10, 2014 12:42 pm
by Maryna Brodina

Hello! In font set for ios7 theme there is no icon "bars". You would need to edit ios7.css file on Source tab to add this icon.


Sliding Panel menu button with data-icon="bars"

Posted: Wed Feb 26, 2014 6:17 am
by m z

Can you share the modification I would need to make to the source code to include the bars icon? I reviewed the flat-ui and ios7 .css files and could not find a difference for the bars icon code.


Sliding Panel menu button with data-icon="bars"

Posted: Wed Feb 26, 2014 10:47 am
by Maryna Brodina

Hello! We reviewed this theme more and looks like there is some problem exactly with this icon. It's reported as a bug and will be fixed. We're going to create tutorial on how to add icons to a theme.


Sliding Panel menu button with data-icon="bars"

Posted: Mon Mar 03, 2014 2:08 pm
by Maryna Brodina

Hello! Please take a look here http://docs.appery.io/documentation/u...