{"id":13913,"date":"2023-12-07T12:59:31","date_gmt":"2023-12-07T18:59:31","guid":{"rendered":"https:\/\/www.mrc-productivity.com\/docs\/?post_type=ht_kb&#038;p=13913"},"modified":"2024-03-06T09:41:37","modified_gmt":"2024-03-06T15:41:37","slug":"featured-component-selector","status":"publish","type":"ht_kb","link":"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/featured-component-selector","title":{"rendered":"Featured Component Selector"},"content":{"rendered":"\n<p>The Component Selector includes many predesigned element templates that can be added to the page in order to make the UI more helpful. These predesigned elements include cards, tabs, buttons, statistical widgets, etc. <\/p>\n\n\n\n<p>Once an element template has been selected and added to your page, you can customize the look\/style of the element by changing background colors, font colors, icons, etc. Additionally, you can further customize the element by changing content to hard-coded text or even import data values from another application.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Cards<\/h2>\n\n\n\n<p>Card elements offer a content container and includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options. <\/p>\n\n\n\n<p>Once selected, any of the placeholder text can be substituted for hard-coded text, data values from the current app or <strong><a href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/working-with-the-m-painter-import-panel\" target=\"_blank\" rel=\"noreferrer noopener\">importing data values from a different application<\/a><\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Card\/Containers<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/cardBasics.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/cardBasics.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Formatted Cards with Images\/Icons<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/cardImages.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/cardImages.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Tabs<\/h2>\n\n\n\n<p>Tabbed panels offer a polished navigation container that can include different content on a single page separated by tabbed groups. <\/p>\n\n\n\n<p>After inserting a tab panel, you are able to change the header tab text and the main content inside the tab body. Additionally, once the tabbed element is selected in m-Painter, you can add additional tabs from the Element Panel.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Basic Tabs<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/tabsBasic.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/tabsBasic.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Lined Tabs<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/tabsLined.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/tabsLined.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Vertical Tabs<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/tabsVertical.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/tabsVertical.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Solid Tabs<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/tabsSolid.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/tabsSolid.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Tabs with Icons<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/tabsIcons.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/tabsIcons.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Tabs with Badges<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/tabsBadges.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/tabsBadges.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Statistical Widgets<\/h2>\n\n\n\n<p>These elements allow you to display data points along with an icon for a quick and visually appealing graphical representation of total values.<\/p>\n\n\n\n<p>After inserting a stat widget, you can change the icon used, any accompanying text, and the data total value.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/statsWidget1.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/statsWidget1.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/statsWidget2.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/statsWidget2.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Progress Bar\/Doughnut Value<\/h3>\n\n\n\n<p>If utilizing a widget with a progress bar or doughnut circle, the widget can dynamically render the completed portion of the line. <\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">In order to ensure the line and value make logical sense to the user, make sure the returned value is between 0 &#8211; 100.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Built-in Data Value<\/h4>\n\n\n\n<p>Once the widget is inserted into the page, click on the highlight the numeric value placeholder in the stat widget.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/vue-images\/statWidgetPainter1.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Once highlighted, use the left-hand component panel to select <strong><a href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/insert-totals-percentages\" target=\"_blank\" rel=\"noreferrer noopener\">Insert Totals &amp; Percentages<\/a><\/strong> in order pull in the data value you wish to plot in the widget.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Alternative Data Value<\/h4>\n\n\n\n<p>If you wish to pull the data value from an alternative location (i.e. Current app data field, Custom Freemarker variables, import, etc) you can do so by selecting the &#8220;STAT CARD&#8221;. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/vue-images\/statWidgetPainter2.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Once the STAT CARD is selected, from the right-side Element Panel, select &#8220;Edit HTML&#8221;. In the source, find the top level element with the &#8216;mrc-stat-widget-card&#8217; class and within this &lt;div&gt; find the attribute for &#8220;data-stat-field&#8221;. Configure this by inserting the substitution value or variable. Additionally, find the &#8220;mrc-stat-value&#8221; &lt;span&gt; element. Change this placeholder value to &#8216;{val}&#8217; (without the quotes). <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/vue-images\/statWidgetPainter3.png\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/vue-images\/statWidgetPainter4.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>At runtime, the line and value will render with the appropriate data value.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"\/docs\/vue-images\/statWidgetPainter5.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Buttons<\/h2>\n\n\n\n<p>Insert a button as a clickable element to serve as a <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/working-with-links\" target=\"_blank\">hyperlink <\/a><\/strong>to another page or application. Alternatively, use a button in combination with the <strong><a rel=\"noreferrer noopener\" href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/visibility-controls-via-m-painter#toggle-on-click\" target=\"_blank\">Toggle Conditional Rendering<\/a><\/strong> feature to show\/hide other elements on the page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/buttonsBasic.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/buttonsBasic.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/buttonsGroups.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/buttonsGroups.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Badges<\/h2>\n\n\n\n<p>Badge elements are a great way to place emphasis on a counter value or labeling component. A common use case is implementing a <strong><a href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/notification-badges\" target=\"_blank\" rel=\"noreferrer noopener\">Notification Badge<\/a><\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/badges.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/badges.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Data Lists<\/h2>\n\n\n\n<p>A Data List component allows you to retrieve and render data from an external application or data model and apply this to a presentation element within the current application. The selected Data List element will repeat itself for each record found in a retrieved data set.<\/p>\n\n\n\n<p>More on using Data Lists can be found <strong><a href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/data-list\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a><\/strong>. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Basic Table List<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/dataListBasicTable.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/dataListBasicTable.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Basic Unordered List<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/dataListUnorderedList.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/dataListUnorderedList.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Basic Vertical Card List<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/dataListVertical.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/dataListVertical.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Horizontal Card List<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/dataListCard.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/dataListCard.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Icon<\/h2>\n\n\n\n<p>A variety of Font Awesome icons are available to add to your application. You can style this element to change its size, color, etc.<\/p>\n\n\n\n<p>The selected icon will be placed at the position of your cursor in m-painter.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/icons.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/icons.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Status<\/h2>\n\n\n\n<p>Statues are tied to workflow objects within Maintenance applications. However, adding a status field allows you to utilize status workflows built within other applications.<\/p>\n\n\n\n<p>Click&nbsp;<strong><a rel=\"noreferrer noopener\" href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/workflow-statuses\" target=\"_blank\">here<\/a>&nbsp;<\/strong>to learn more about the Workflow Status feature.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/statusOptions.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/statusOptions.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Map<\/h2>\n\n\n\n<p>Insert a Google map to your page while customizing plot point locations as well as marker text for each plot point.<\/p>\n\n\n\n<p>Click&nbsp;<strong><a href=\"https:\/\/www.mrc-productivity.com\/docs\/knowledge-base\/how-to-add-google-maps-to-your-applications\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>&nbsp;<\/strong>to learn more about inserting Google Maps.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/googleMapPoints.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/googleMapPoints.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Image<\/h2>\n\n\n\n<p>This feature allows you to insert an image to the page from an image file on the m-Power server or a web address. Substitute the filename in the image path with a data field from your application to create an image that will dynamically display to your end user based on the record displayed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"\/docs\/vue-images\/imagesEx.jpg\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"\/docs\/vue-images\/imagesEx.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Image Path on the Server<\/h3>\n\n\n\n<p>Enter the directory path to find the image file on the server. Include the file name in the path. Use the &#8220;Append Fields to Path&#8221; pulldown to append data field substitutions into your path.<\/p>\n\n\n\n<p>For example, <code>\/mrcjava\/images\/products\/A1060.jpg.<\/code> Alternatively, if using a dynamic substitution as the file name, the path might look like this; <code>\/mrcjava\/images\/products\/${row.PRODNUM?url}.jpg<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Height\/Width<\/h3>\n\n\n\n<p>Optionally, set the height and width of your image. If a size is not set, the image will render as it appears directly in the image file.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-alert\">Do not specify the unit of measure as this is already set in pixels.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Alt Text<\/h3>\n\n\n\n<p>This&nbsp;attribute provides alternative text\/information for an image if a user for some reason cannot view it (because of slow connection, an error in the source path, or if the user uses a screen reader).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Component Selector includes many predesigned element templates that can be added to the page in order to make the UI more helpful. These predesigned elements include cards, tabs, buttons, statistical widgets, etc. Once an element template has been selected and added to your page, you can customize the look\/style&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[255],"ht-kb-tag":[],"class_list":["post-13913","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-mpainter"],"_links":{"self":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/13913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/comments?post=13913"}],"version-history":[{"count":12,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/13913\/revisions"}],"predecessor-version":[{"id":14075,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb\/13913\/revisions\/14075"}],"wp:attachment":[{"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/media?parent=13913"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=13913"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.mrc-productivity.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=13913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}