Wrap Content in Cards/Tabs

m-Power generated content is built with the idea that the developer will probably want to customize the output to make the look and feel of the UI their own. With this in mind, m-Painter gives developers many options to easily add their customizations. One such way to do that is to wrap content into either cards or tabs. These components give content additional structure and allows to be better defined/organized.

Video Walkthrough

Implementation

Open m-Painter and navigate to the area you wish to wrap. When you select the element, a blue label will appear as will a blue border around the selected element. If that is not the correct element, you can press the up arrow within the blue menu to select the parent element. Continue to do this until the correct element has been selected.

From the blue menu, click on the icon of the square wrapped in another square. This icon represents the functionality to wrap the selected element into a container.

From there a menu will appear allowing you to choose what you would like to wrap your content in. This documentation will cover wrapping in either cards or tabs.

Wrapping Content in Cards

Choose one of the pre-built cards from the popup window.

Keep in mind that you can utilize the styling panel to adjust any color/fonts/images that you may want to adjust. Ultimately, these pre-built cards are built as a starting point to be adjusted/tweaked to perfect to meet your needs.

The following window, Configure Element Wrapper, allows you tell m-Painter if you want:

  1. Wrap the selected element into the card
  2. Place the new card inside of the selected element

While there are use cases for both, developers will almost always pick the first option, “Wrap the selected element”

When completed, your application may look something like this.

Please adjust the “Primary header” text to a more applicable label based on your application.

Wrapping Content in Tabs

Choose one of the pre-built tab layouts from the popup window.

The following window, Configure Element Wrapper, allows you tell m-Painter if you want:

  1. Wrap the selected element into the card
  2. Place the new card inside of the selected element

While there are use cases for both, developers will almost always pick the first option, “Wrap the selected element”

When completed, your application may look something like this.

Please change the labels for Tab 1 or Tab 2 to better label based on your application’s needs.

m-Painter will create a two tab layout, however you may want to add additional tabs. To do so click on either Tab 1 or Tab 2. Then, in the right side panel, click “Add Tab.”

Updated on December 4, 2023

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support