The buttons will have equal size by default.Menus Icon Bar Menu Icon Accordion Tabs Vertical Tabs Tab Headers Full Page Tabs Hover Tabs Top Navigation Responsive Topnav Split Navigation Navbar with Icons Search Menu Search Bar Fixed Sidebar Side Navigation Responsive Sidebar Fullscreen Navigation Off-Canvas Menu Hover Sidenav Buttons Sidebar with Icons Horizontal Scroll Menu Vertical Menu Bottom Navigation Responsive Bottom Nav Bottom Border Nav Links Right Aligned Menu Links Centered Menu Link Equal Width Menu Links Fixed Menu Slide Down Bar on Scroll Hide Navbar on Scroll Shrink Navbar on Scroll Sticky Navbar Navbar on Image Hover Dropdowns Click Dropdowns Cascading Dropdown Dropdown in Topnav Dropdown in Sidenav Resp Navbar Dropdown Subnavigation Menu Dropup Mega Menu Mobile Menu Curtain Menu Collapsed Sidebar Collapsed Sidepanel Pagination Breadcrumbs Button Group Vertical Button Group Sticky Social Bar Pill Navigation Responsive Header ![]() If you want to group a couple of buttons together, you can use the button-bar class. The above code will produce the following screen − Button Bar You will usually want to move your icon to one side when you have some text on top of your button as explained below. You can place the icon on one side of the button by using the icon-left or the icon-right. When you want to add Icons to your buttons, the best way is to use the icon class. The above code will produce the following screen − Adding Icons The following example shows how to use these two classes. To remove the border from the button, you can use the button-clear class. Buttons with this class will have an outline border and a transparent background. ![]() If you want your buttons transparent, you can apply button-outline class. You can use any of the following nine classes to give a color of your choice to your app buttons − Color Class The above code will produce the following screen − Since we are styling the footer bar, the prefix class will be a bar and the color class that we want to use in this example is assertive (red). When you style your elements, you need to add your main element class as a prefix to your color class. ![]() If you want to style your button, you just need to add appropriate color class to it. The above code will produce the following screen − Button Colors ![]() There are two Ionic classes for changing the button size −įollowing is an example to show their usage − The above code will produce the following screen − Button Size If you want to remove padding but keep the full width, you can use the button-full class.įollowing is an example to show the usage of both classes − You will use button-block class for adding block buttons. They will also have a small padding applied. Block Buttonsīlock buttons will always have 100% width of their parent container. This class will always be applied to our buttons, and we will use it as a prefix when working with sub classes. The main class for all the button types is button. There are several types of buttons in the Ionic Framework and these buttons are subtly animated, which further enhances the user experience when using the app.
0 Comments
Leave a Reply. |