This article will walk you through customizing the Toggles Design Element and its basic features.
TABLE OF CONTENTS
Prerequisite
- You have the latest version of ShortPoint SPFx installed on your SharePoint environment.
- You are a ShortPoint Designer with an active license.
Interactive Tutorial
Click Get Started to learn how to customize the Toggles Design Element:
NOTECheck out Toggles Features to learn more about the OOTB options you can customize.
Step-by-step Tutorial
Follow the steps below for a detailed guide on how to customize the Toggles Design Element:
Step 1: Edit the ShortPoint Web Part
- Go to the SharePoint page you want to use and click Edit.
- Click the ShortPoint tag.
- Select the pencil icon.
Step 2:Insert the Toggles Design Element
- Click the plus icon.
- Use the search box to look for Toggles and click it.
Step 3: Edit the items in the Toggles
- Navigate to the Items tab.
- Click the cogwheel icon of the first item.
- Add a Title.
- Add Content.
- Click the back icon to edit the other items.
- Repeat the steps above for the other items.
- (Optional) If you want to add another item, click Add New. Then, repeat the same steps above to edit the content of the new item.
NOTEYou can also create dynamic Toggles content. Check out ShortPoint Connect: Basic Tutorial.
Step 4: Customize the Toggles’ design
- Navigate to the Design tab.
- Customize the Toggles according to your preference.
- Click the green check mark.
NOTECheck out Toggles Features to learn more about the OOTB options you can customize.
Step 5 (Optional): Add Design Element inside Toggles
- Click the Toggles tag.
- Select the item where you want to add content.
- Click the plus icon inside the item.
- Use the search bar to look for the Design Element you want to use and click it.
- Customize the selected Design Element according to your preference.
- Once done, click the green check mark.
Step 6: Save
- Then, click the eye icon to see your page in real-time.
- Click Save to apply all your changes.
Toggles Features
Below are the options you can find in the Toggles Settings window:
A. Items tab
The Items tab allows you to duplicate, delete, configure content, and add new items. It has the following options:
ITEMS ACTION ICONS
Cogwheel | opens a new window that allows you to edit the content of each item. See the table below for the cogwheel icon settings. | |
Duplicate | duplicates the item selected. | |
Trash | deletes the item selected. | |
Add New | adds a new item. | |
Drag and Drop | allows you to re-arrange the position of the item. |
COGWHEEL ICON SETTINGS
Title | add item title. | |
Content | allows you to add text content inside each toggle. |
B. Design tab
The Design tab allows you to customize the design of the Toggles Design Element. It has the following options:
SETTINGS
Title Color | allows you to choose the font color of the Title. You can do so by [1] writing the HEX code, [2] using the drop-down, or [3] using the color picker. | |
Title Hover Color | allows you to choose the font color of the Title when a user hovers over it. You can do so by [1] writing the HEX code, [2] using the drop-down, or [3] using the color picker. | |
Title text size | allows you to set the size of the Toggle Title & icon in pixels, em, or rem ( e.g: 15px, 2em, or 3rem). | |
Hide divider | when enabled, the divider will be hidden. |
ICON
Close icon | allows you to choose the icon to display when the toggle is closed. | |
Open icon | allows you to choose the icon to display when the toggle is open. | |
Icon Location | allows you to choose the location of the icon. You can choose from Left or Right. |
NOTECheck out our Icons page to see all the icons you can add to your SharePoint page.
C. Custom CSS Tab
This tab allows you to use your own CSS, HTML, and Javascript code to customize the Toggles Design Element.
NOTECheck out our support article on How to Insert Custom CSS into a Page Builder Element? (Basic Tutorial) to know more about Custom CSS.
NOTEThe Visibility and Connect tabs are currently unavailable in Live Mode.
That’s it! You now know how to customize the Toggles Design Element. Try using these amazing features on your pages.
Related articles: