Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Note
titleContent Freeze

As of July 25th, 2023, there is a content freeze on this page.

Note: a newer, layout-based Tab Panel Layout is available. We recommend using the more powerful, less error-prone Tab Panel Layout over Tab Panels. Tab Panel Layouts can be styled using CSS rules.

To create a custom tab panel widget, a tab panel style must first be added to the pui.widgets.tabStyles associative array.  Each entry in pui.widgets.tabStyles is an object with name/value pairs; the following are possible names:

Property NamePossible ValuesDescriptionRequirement(s)
useImagestrue/falseDetermines if images are provided and used in the drawing of a tab panel.
The following images are needed in the IFS Directory location 
/www/profoundui/htdocs/profoundui/proddata/images/tabs/custom_widget_style_name:
  • left.gif - the left side image of an inactive tab
  • left-sel.gif - the left side image of an active tab
  • middle.gif - horizontally repeated middle image of an inactive tab
  • middle-sel.gif - horizontally repeated middle image of an of an active tab
  • right.gif - the right side image of an inactive tab
  • right-sel.gif - the ride side image of an active tab
hiImagestrue/falseDetermines if highlight images are provided and used when the cursor hovers over a tab.
The following images are needed in the IFS Directory location
/www/profoundui/htdocs/profoundui/proddata/images/tabs/custom_widget_style_name:
  • left-hi.gif - the left side image of a highlighted, inactive tab
  • middle-hi.gif - horizontally repeated middle image of a highlighted, inactive tab
  • right-hi.gif - the right side image of a highlighted,inactive tab
imageFileExtension

Any valid image file extension Default: .gif

Specifies image file extension used for Tab Panel images.Optional
heightAny valid pixel valueDetermines the tab height in pixels.Digits Only
defaultBackColorAny valid color name or hex valueSets the default background color of the active tab.

useImages needs to be set to false

hiColorAny valid color name or hex valueSets the highlight color of non-selected tabs when cursor hovers over.

useImages needs to be set to false

leftWidthAny valid pixel valueSets the width of the left side image.

Digits Only

Should match width of provided image.

useImages needs to be set to true

rightWidthAny valid pixel valueSets the width of the right side image.

Digits Only

Should match width of provided image.

useImages needs to be set to true

selColorAny valid color name or hex valueDetermines color of active tab.

useImages needs to be set to true

selBoldtrue/falseDetermines if active tab header is also bold.useImages needs to be set to true
borderColorAny valid color name or hex valueSets the color of the Border.

borderSize needs to be set to a digit pixel value greater than zero. Otherwise, color will not be seen.

leftMarginAny valid pixel valueSets the width of the left side margin of the tabs in pixels.

Digits Only

useImages needs to be set to true

hiUnderlinetrue/false

Determines if highlightedinactive  tab header is also underlined.

Optional
separatedtrue/falseDetermines if there is a separation gab between the tabs.useImages needs to be set to true
backBartrue/falseDetermines if the area behind the tabs, the Back Bar, is visible or transparent.Optional

If set to true, it is required for either backBarColor to be set to a valid color value or an image named middle.gif be provided in the IFS Directory location  /www/profoundui/htdocs/profoundui/proddata/images/tabs/custom_widget_style_name  in order to be visible.

backBarColorAny valid color name or hex valueSets the color of the Back Bar.backBar needs to be set to true
borderSize

Any valid pixel value

Default: 1

Sets the tab panel's border size in pixels.Digits Only
defaultTabColorAny valid color name or hex valueSets the background color of inactive tabs.

useImages needs to be set to false

ProfoundUI Version 5, Fix Pack 13.0 and later.


JavaScript Syntax for Adding a Tab Panel Style

...