cpr.controls.TabItem
Items in tabbed folders, MDI folders.
Index
Name |
Type |
Description |
checked |
Boolean |
Gets whether the tab item's checkbox is filled or not. |
closable |
Boolean |
Returns whether the close button of the Tab Item is displayed. |
content |
UIControl |
Returns the internal control of the Tab Item. |
enabled |
Boolean |
Gets whether the tab item is enabled or not. |
focused |
Boolean |
Returns whether the tab item currently owns focus. |
id |
Number |
Returns an identification value indicating the order in which the tab items were added to the tab folder. |
itemIndex |
Number |
Get the index of the item within the tab folder. |
name |
String |
Gets a name to identify the tab item. |
tabFolder |
TabFolder |
Returns the tab folder control of the tab item. |
text |
String |
Returns the displayed text of the Tab Item. |
tooltip |
String |
Get the tooltip text for the tab item. |
visible |
Boolean |
Gets the visibility of the tab item's header. |
Constructor
Properties
type
|
Boolean |
get
|
Gets whether the tab item's checkbox is filled or not.
|
set
|
Specifies whether the tab item's check box is filled.
|
type
|
Boolean |
get
|
Returns whether the close button of the Tab Item is displayed.
|
set
|
Sets whether to display the close button of TabItem.
|
type
|
UIControl |
get
|
Returns the internal control of the Tab Item.
Returns the layout surrounding the control.
|
set
|
Set the internal controls of the Tab Item.
Set the layout.
|
type
|
Boolean |
get
|
Gets whether the tab item is enabled or not.
Disabled tab items cannot be selected by the user.
|
set
|
Specifies whether to activate the tab item.
|
type
|
Boolean |
readonly
|
Returns whether the tab item currently owns focus.
|
type
|
Number |
readonly
|
Returns an identification value indicating the order in which the tab items were added to the tab folder. This value starts at 1 and is not in the order being displayed.
|
type
|
Number |
readonly
|
Get the index of the item within the tab folder.
If it does not belong to the tab folder, -1 is returned.
|
type
|
String |
get
|
Gets a name to identify the tab item.
|
set
|
Specifies a name to identify the tab item.
|
type
|
TabFolder |
readonly
|
Returns the tab folder control of the tab item.
|
type
|
String |
get
|
Returns the displayed text of the Tab Item.
|
set
|
Tab Set the displayed text of the item.
|
type
|
String |
get
|
Get the tooltip text for the tab item.
|
set
|
Specifies the tooltip text for the tab item.
|
type
|
Boolean |
get
|
Gets the visibility of the tab item's header.
|
set
|
Specifies whether the tab item is visible in the header.
If this value is false, it will not appear in the header. You will only be able to select it through the API.
|
Methods
Gets the bind factory for the given attribute name.
name |
type |
description |
name
|
#bindable-property_name |
The attribute name for which to get the bind factory. |
Close the item.
If the selected tab item is closed, change the nearest item from the index of the closed tab item to the selected tab item.
Gives focus to the tab item.
name |
type |
description |
immediateoptional
|
Boolean |
defaultfalse
|
|
Gets the area the tab item is displaying in the browser viewport area.
Gets the area the tab item is displaying in the browser viewport area.
name |
type |
description |
options
|
{
scaled: Boolean
} |
|
Returns the bind context.
Returns the bind property information for the control.
name |
type |
description |
name
|
#bindable-property_name |
The name of the attribute being bound. |
Returns all custom attribute names.
return
|
String[] |
An array of all custom attribute names. |
Make sure it is a bindable property.
name |
type |
description |
name
|
#bindable-property_name |
Attribute name |
return
|
Boolean |
Confirmation. |
Schedule a repaint of the tab item.
Delete all custom attributes.
Removes user-defined attributes for a specific attribute name.
name |
type |
description |
key
|
String |
The custom attribute name to remove. |
Unbind that property.
name |
type |
description |
name
|
#bindable-property_name |
Attribute name to unbind. |
Specifies custom properties.
name |
type |
description |
key
|
String |
The attribute name to assign |
value
|
String |
The attribute value to specify. |
Returns a user-defined property.
name |
type |
description |
key
|
String |
The attribute name to get. |
return
|
String |
Custom properties. |
Specify multiple custom properties at once.
name |
type |
description |
values
|
{[key:string]: String} |
A JSON object containing custom attribute keys/values. |
Get all custom properties in the form of a map.
return
|
{[key:string]: String} |
|
Returns a user-defined property.
return
|
Object |
Custom properties. |