Oracle Visual Builder Cloud Service.
Let's see how to to change the menu button icon in a mobile application in Oracle VBCS
Assuming that you have an application and have added a menu button in your page. The default menu button will look like below when Menu Button is configured with icons.
Now how to change this icon to a hamburger 3 line menu icon ? Many elements support defining style class for startIcon and endIcon slots. <oj-menu-button> have startIcon, endIcon slots
Reference for this can be found here. http://www.oracle.com/webfolder/technetwork/jet/jsdocs/oj.ojMenuButton.html
So we are going to use endIcon slot, as the arrow icon sits in endIcon slot. We need to give a style class here in the place of "myIconClass". Oracle JET provides many framework icons. Reference for that can be found here
http://www.oracle.com/webfolder/technetwork/jet/jetCookbook.html?component=imagefwk&demo=fwk&mode=and_port
We are going to use "oj-fwk-icon-hamburger" class to get the hamburger icon. So add a span inside your <oj-menu-button>
<span slot="endIcon" class="oj-fwk-icon-hamburger oj-fwk-icon"></span>
Now in the page you can see the menu icon got changed like below
Let's see how to to change the menu button icon in a mobile application in Oracle VBCS
Assuming that you have an application and have added a menu button in your page. The default menu button will look like below when Menu Button is configured with icons.
Now how to change this icon to a hamburger 3 line menu icon ? Many elements support defining style class for startIcon and endIcon slots. <oj-menu-button> have startIcon, endIcon slots
Reference for this can be found here. http://www.oracle.com/webfolder/technetwork/jet/jsdocs/oj.ojMenuButton.html
So we are going to use endIcon slot, as the arrow icon sits in endIcon slot. We need to give a style class here in the place of "myIconClass". Oracle JET provides many framework icons. Reference for that can be found here
http://www.oracle.com/webfolder/technetwork/jet/jetCookbook.html?component=imagefwk&demo=fwk&mode=and_port
We are going to use "oj-fwk-icon-hamburger" class to get the hamburger icon. So add a span inside your <oj-menu-button>
<span slot="endIcon" class="oj-fwk-icon-hamburger oj-fwk-icon"></span>
Now in the page you can see the menu icon got changed like below
Comments
Post a Comment