Please enable JavaScript to view this site.

Knowledge Bridge Documentation

Help version: 3.3.8

Description

A UITabPanel is a single "tab" in a UITabControl. In this example, there are 3 UITabPanel children under a UITabControl.

 

UITabPanel0UITabPanel1

Parameter Rules

 

header:The text which appears on the tab.        
Example:"Supplier"
UITabPanel0

 

tabEnable:Whether this tab is enabled. If set to false, the tab will still be visible but you will not be able to click on it and view it's content.        
Example:true;

 

tabIndex:The unique index for this tab.        
Example:"1"

 

Mixins

UIContainer

UIContainerMixin

UIControlMixin

UIStyleMixin

BaseNode

 

RULE NAME

TYPE

DEFAULTS

CATEGORY

FLAGS

header

string

""

UI

Cached
Parameter

Spec

tabEnable

boolean

true

UI

Cached
Parameter

Spec

tabIndex

string

""

UI

Cached
Parameter

Spec

 

 

 

UITextBox1

Project Example:

In your kBridge Examples Projects folder open the project called ‘UITabExample’.

 

UITabPanel2

Reference Location:

UITabPanel3

 

 

Open the UITabExample project.

Press the UI start icon to start the User Interface.

 

Notice at start up, the 'Supplier' tab is the activeTab because it's tabIndex rule has a value of "1" and rule was created in the root called activeTab with a value of "1"

and the UITabControl (MyUITabControl) is referencing that rule. If you wanted the opening activeTab to be 'Lumber Size' then find it's tabIndex ("2") and put that

value in the activeTab rule that you created in the root.

 

UITabPanel4

 

 

The different UI designs are placed within the UITabPanels.

 

 

UITabPanel5

 

A UIRadioButton was added in the Cost tab that opens up a second UITabControl.

 

UITabPanel6

 

A second UITabControl (MyUITabControl2) was added. Now there are 2 separate tab groupings.

 

UITabPanel7

 

 

Try out the Calculator.

This project also has examples for:

position : Positioning rows and columns (see Lumber/position)

inputData : Shows one way to format a data array.

CostFromData : This rule uses the find() method to search and collect from the inputData.

MaterialWood design : which has the Material design as children (different wood textures).

Light Design :

CostDataName : Example of making a unique data id name.

 

UITabPanel8

Knowledge Bridge from Engingeering Intent is a full-featured engineering and sales automation environment