The name of the form displayed in the tab. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var childForm = solutionModel.newForm('childForm', 'db:/example_data/child_table', null, false, 400, 300);
var anotherChildForm = solutionModel.newForm('anotherChildForm', 'db:/example_data/child_table', null, false, 400, 300);
var firstTab = tabs.newTab('firstTab', 'Child Form', childForm, relation);
firstTab.containsForm = anotherChildForm; |
|
|
|
|
The foreground color of the tab. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var firstTab = tabs.newTab('firstTab', 'Child Form', childForm, relation);
firstTab.foreground = '#FF0000'; |
|
|
|
|
The name of the image Media file used. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var bytes = plugins.file.readFile('d:/ball.jpg');
var ballImage = solutionModel.newMedia('ball.jpg', bytes);
var firstTab = tabs.newTab('firstTab', 'Child Form', childForm, relation);
firstTab.imageMedia = ballImage; |
|
|
|
|
Mnemonic used to switch to tab. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var childForm = solutionModel.newForm('childForm', 'db:/example_data/child_table', null, false, 400, 300);
var anotherChildForm = solutionModel.newForm('anotherChildForm', 'db:/example_data/child_table', null, false, 400, 300);
var firstTab = tabs.newTab('firstTab', 'Child Form', childForm, relation);
firstTab.mnemonic = 'a'; |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var firstTab = tabs.newTab('firstTab', 'Child Form', childForm, relation);
firstTab.name = 'firstTabRenamed'; |
|
|
|
|
The name of the relation that links the form which contains the tab
with the form displayed in the tab. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var firstTab = tabs.newTab('firstTab', 'Child Form', childForm);
firstTab.relationName = 'parent_table_to_child_table'; |
|
|
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var firstTab = tabs.newTab('firstTab', 'Child Form', childForm, relation);
firstTab.text = 'Better Title'; |
|
|
|
|
The text displayed when hovering over the component with a mouse cursor.
NOTE:
HTML should be used for multi-line tooltips; you can also use any
valid HTML tags to format tooltip text. For example:
<html>This includes<b>bolded text</b> and
<font color='blue'>BLUE</font> text as well.</html> |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample var firstTab = tabs.newTab('firstTab', 'Child Form', childForm, relation);
firstTab.toolTipText = 'Tooltip'; |
|
|
|
|
The X coordinate of the tab. This influences the order in which the tabs are displayed.
The tabs are displayed in increasing order of the X coordinate. If two tabs have the
same X coordinate, then they are displayed in increasing order of the Y coordinate. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // Create two tabs, then make the second one be displayed to the left of the first
// by setting their X coordinates in the needed order.
var firstTab = tabs.newTab('firstTab', 'Child Form', childForm, relation);
firstTab.x = 10;
var secondTab = tabs.newTab('secondTab', 'Another Child Form', anotherChildForm);
secondTab.x = 0; |
|
|
|
|
The Y coordinate of the tab. Together with the X coordinate, this influences the order
in which the tabs are displayed. The tabs are displayed in increasing order of the X coordinate,
and if two tabs have the same X coordinate, then they are displayed in increasing order
of the Y coordinate. |
|
|
Supported Clients SmartClient,WebClient,NGClient |
|
|
Sample // Create two tabs, then make the second one be displayed to the left of the first
// by setting their X to the same value and Y coordinates in the needed order.
var firstTab = tabs.newTab('firstTab', 'Child Form', childForm, relation);
firstTab.x = 0;
firstTab.y = 10;
var secondTab = tabs.newTab('secondTab', 'Another Child Form', anotherChildForm);
secondTab.x = 0;
secondTab.y = 0; |
|
|
|
|
|