Clear Button

The Clear Button is part of the Ionic Layout Component Set. is an action button with a transparent background. Studio Users can format the Button Text and set the Link to a Page within the app, an external URL, email address, or a phone number. 

Add a Clear Button a Page

Create or open an existing app.
Click the Edit Pencil on a Page.
Click the Green + Icon, located in the bottom right corner.
Either scroll to Button: Clear in the list or begin typing Button: Clear to search the list.
Select the Clear Button. The Clear Button Component will appear at the bottom of the Content list in the left-hand column. The Clear Button Properties will appear in the right-hand column.

Clear Button Properties

The Clear Button component has the following properties:

  • Component Id - Sets the name of the Clear Button component in the app. The Component Id can be referenced using JavaScript to add more functionality to the app as needed.

    Pro Tip: It is a best practice to use only letters without spaces for the Component Id. Symbols, spaces, and numbers are not recommended.
  • Link - Sets the link to another Page in the app or an external URL.

    Pro Tip: Type in tel:5558675309 to link to a phone number with "5558675309" replaced with the applicable 10-digit phone number or mailto:emailaddress to open up the default email client from the app with "emailaddress" replaced with the email address you want to be sent the email.
  • Open Link in a New Tab - Toggles on or off whether the Link opens in a new tab or not in the app. 
  • Text - Enter the text as it should appear in the app. This text does not wrap and should be limited to 20 characters. 
  • Bold Text - Toggles on or off Bold Text for the component.
  • Text Color - Sets the color of the Button Text. There are two ways to set the Text Color: Click the Color Swatch to choose from the app’s Color Palette or enter the hex code in the text field.
  • Button Size - Sets the size of the Clear Button. Choose from the dropdown list: Default, Large, or Small.
  • Full Width - Toggles on or off the ability for the Clear Button to span the entire width of the column(s) set in the Placement Settings. When the Full Width is toggled on, the Clear Button will be centered within the number of columns the component is set to span. When toggled off, the Clear Button will be left-justified within the column it is set to start in. 
  • Icon Name - Pulls in icons from a library of open source icons built by the Ionic Framework team. If blank, no icon will display.
  • Icon Alignment - Sets the placement of the icon if an Icon Name is entered in the property above. Choose from the dropdown list: Left or Right.
  • Button Opacity - Sets the opacity of the component. Use the up and down arrows to change the number from 100 to 1. A setting of 1 will make the component completely transparent and a setting of 100 is fully opaque. 

Clear Button Placement Settings

The Placement Settings for the Component sets which column(s) the Component will appear. Each Page of the app can have a different number of columns that are set in the Layout section of the Page Settings. The following Placement settings are available for this Component:

  • Column Start - Sets the column where the Component will start. 
  • Column Span - Sets how many columns the Component will span. 
  • Padding - Sets how much space will appear on the top, bottom, left, and right of the Component. When building a Page with multiple Components, the Padding will determine the overall spacing between Components.
  • Display Mode - Sets how the Component is displayed. If Both is selected, the Component will always show. Both are the default option. If Optimal is selected, the Component will only show if the browser supports the app. The main supported browsers are Chrome and Safari. If Degraded is selected, the Component will only show if the browser does not support the app. The main unsupported browser is Internet Explorer.

Still need help? Contact Us Contact Us