cpr.controls.TabFolder
TabFolder
A control that displays one page selected by the user among multiple pages.
Index
Event |
Description |
animationend |
Event that occurs after the animation ends. |
animationstart |
Event that occurs at the start of the animation. |
before-context-value-change |
Use a bind context in a control that has a bind context
An event that occurs before the value changes. |
before-draw |
This event is called just before group content is drawn. |
before-selection-change |
Event that occurs before a TabItem is selected. |
click |
An event that occurs when the user clicks the control. |
close |
This event occurs when a tab item is closed, and can be canceled by the user. |
context-value-change |
Use a bind context in a control that has a bind context
An event that occurs after the value changes. |
contextmenu |
An event in which the mouse context menu is called. |
dblclick |
An event that occurs when the user double-clicks the control. |
dispose |
The event that is called when the control is dispose. |
dragenter |
When the mouse pointer enters the elements included in the control while dragging
Events that occur. |
dragleave |
During the drag, the mouse pointer may have exited the elements contained in the control. |
dragover |
While dragging the source control with the mouse, the mouse pointer
An event that occurs when moving within a region. |
drop |
Drag the source control to the target control while dragging the source control with the mouse. |
focusin |
Just before the control and its sub-elements gain focus
The event that occurs. |
focusout |
Occurs just before the control's child elements below the control lose focus
event. |
item-accept |
An event to check whether a tap item will accept a drop before it is dropped. |
item-drag |
An event that occurs when a tab item starts dragging. |
item-drop |
Event that occurs after the tap item is dropped. |
keydown |
Event raised when the user presses a key. |
keyup |
Event that occurs when the user releases the key. |
measure-size |
Event raised when calculating control size |
mousedown |
When the user presses the mouse button with the pointer over the control
Occurs when an event occurs. |
mouseenter |
An event that occurs when the mouse pointer enters the control. |
mouseleave |
If the user moves the mouse pointer beyond the control and its children
Events that occur when moving. |
mousemove |
This event is raised when the user moves the pointer over the control. |
mouseup |
The user releases the mouse button while over the control. |
selection-change |
Event that occurs after a TabItem is selected. |
tabheader-click |
Event that occurs when the tab header is clicked. |
transitionend |
Event that fires after CSS property transition ends. |
transitionstart |
Event that fires when CSS property transition starts. |
Constructor
Create a tabbed folder.
name |
type |
description |
idoptional
|
String |
id of tab folder |
Events
CValueChangeEvent Use a bind context in a control that has a bind context
An event that occurs before the value changes.
CUIEvent This event is called just before group content is drawn.
It is only used for dynamically constructing internal content.
CSelectionEvent Event that occurs before a TabItem is selected.
Selection-change occurs as the following event.
oldSelection: {cpr.controls.TabItem} previously selected tab item
newSelection: {cpr.controls.TabItem} Tab item whose selection will be changed
CMouseEvent An event that occurs when the user clicks the control.
CUIEvent This event occurs when a tab item is closed, and can be canceled by the user.
content: {cpr.controls.TabItem} Closed tab item
CValueChangeEvent Use a bind context in a control that has a bind context
An event that occurs after the value changes.
CMouseEvent An event in which the mouse context menu is called.
Context menu is provided only for TabHeader.
To prevent the system's context menu, you need to write event.preventDefault().
event.targetObject.item: {cpr.controls.TabItem | null} Gets the tab item located at the mouse pointer. If not, it is null.
CMouseEvent An event that occurs when the user double-clicks the control.
CEvent The event that is called when the control is dispose.
CMouseEvent When the mouse pointer enters the elements included in the control while dragging
Events that occur.
CMouseEvent During the drag, the mouse pointer may have exited the elements contained in the control.
The event that occurs when.
CMouseEvent While dragging the source control with the mouse, the mouse pointer
An event that occurs when moving within a region.
CMouseEvent Drag the source control to the target control while dragging the source control with the mouse.
Event that fires when dropping.
CFocusEvent Just before the control and its sub-elements gain focus
The event that occurs.
CFocusEvent Occurs just before the control's child elements below the control lose focus
event.
CItemAcceptEvent An event to check whether a tap item will accept a drop before it is dropped.
CItemEvent An event that occurs when a tab item starts dragging.
CItemEvent Event that occurs after the tap item is dropped.
CKeyboardEvent Event raised when the user presses a key. Keycode related constants can be referenced at
KeyCode.
CKeyboardEvent Event that occurs when the user releases the key. Keycode related constants can be referenced at
KeyCode.
CMouseEvent When the user presses the mouse button with the pointer over the control
Occurs when an event occurs.
CMouseEvent An event that occurs when the mouse pointer enters the control.
CMouseEvent If the user moves the mouse pointer beyond the control and its children
Events that occur when moving.
CMouseEvent This event is raised when the user moves the pointer over the control.
CMouseEvent The user releases the mouse button while over the control.
When an event occurs.
CSelectionEvent Event that occurs after a TabItem is selected.
oldSelection: {cpr.controls.TabItem} previously selected tab item
newSelection: {cpr.controls.TabItem} Tab item whose selection has changed
CItemEvent Event that occurs when the tab header is clicked.
item: {cpr.controls.TabItem} Clicked item
Properties
declaring type
|
UIControl |
type
|
Accessbility |
readonly
|
Gets the accessibility-related ARIA properties or gets the context in which they can be specified.
|
declaring type
|
Container |
type
|
String |
get
|
Get a class for the combinator to select direct children.
|
set
|
Specifies the class for the combinator to select immediate children.
|
declaring type
|
Container |
type
|
Boolean |
get
|
Gets whether clipping is applied.
|
set
|
Specifies whether clipping is applied when child controls leave the area of this container.
If you have a layout configured to display scroll bars, this property is ignored.
|
declaring type
|
Control |
type
|
Boolean |
readonly
|
Returns whether the control should be removed.
|
declaring type
|
UIControl |
type
|
Boolean |
readonly
|
Returns whether the value can be changed by user action.
UIControl (Output, etc.) that does not allow input returns false.
In the case of an inputtable UIControl, returns true if the binding context in which the value is bound is valid.
Otherwise, it returns false even if it is an inputtable UIControl.
Accordion/Button/Group/Dialog/EmbeddedApp/EmbeddedPage/Grid/HTMLObject/Image/MDIFolder/Menu/
NavigationBar/Notifier/Output/Progress/TabFolder/Shell/FileUpload
In the case of the above control, editable is always false.
|
declaring type
|
EnableUIControl |
type
|
Boolean |
get
|
Returns whether the control is enabled.
|
set
|
Sets whether to activate the control.
|
declaring type
|
UIControl |
type
|
String |
get
|
Returns the logical field name of the control.
|
set
|
Sets the logical field name of the control.
|
declaring type
|
UIControl |
type
|
Boolean |
readonly
|
Returns whether the control is focusable.
|
declaring type
|
UIControl |
type
|
Boolean |
readonly
|
Returns whether the control has focus.
|
type
|
TabHeaderArrowPosition |
get
|
TabHeader arrow position setting: both, left, right
|
set
|
TabHeader arrow position setting: both, left, right
|
type
|
TabHeaderArrowVisibility |
get
|
Gets a way to determine whether the scroll button in the tab item area is visible.
|
set
|
Specifies how to determine whether scroll buttons in the tab item area are displayed.
|
type
|
Boolean |
get
|
Check whether TabItem Header can be checked
|
set
|
Check whether TabItem Header can be checked
|
type
|
UIControl |
get
|
Get the header control.
|
set
|
Specifies the control to be displayed on the right side of the header of the tabbed folder.
|
type
|
TabHeaderPosition |
get
|
Gets the setting for the location where the tab header appears.
|
set
|
Sets where tab headers are displayed.
|
type
|
Boolean |
get
|
Returns whether to show or hide headers.
|
set
|
Sets whether to show or hide headers.
|
declaring type
|
Control |
type
|
String |
readonly
|
Returns the ID of the control.
|
type
|
TabItemAlign |
get
|
Gets a way to sort items.
|
set
|
Specifies how to sort items.
Valid values are defined in cpr.controls.TabItemAlign.
- leading: Align to the left.
- center: Align to the center.
- trailing: Align to the right.
|
type
|
#expression |
get
|
Gets an expression to apply transformations of the tab item's content and style.
|
set
|
Specifies an expression to apply transformations of the tab item's content and style.
|
type
|
ItemDraggingMode |
get
|
Gets the drag handling mode of the tab item.
|
set
|
Specifies the drag handling mode for tab items.
|
type
|
TabItemSizing |
get
|
You get a way to determine the width of an item.
|
set
|
Specifies how to specify the width of the item.
Valid values are defined in cpr.controls.TabSizing.
- auto: Width is automatically determined based on the tab item text.
- fill: Distributes the width of each tab item equally across the entire tab area.
- fixed: Have a fixed value size. The value can be specified as preferredItemWidth.
|
type
|
Number |
get
|
Gets the gap between items.
|
set
|
Specifies the spacing between items.
If this value is negative, items will appear on top of each other.
|
declaring type
|
UIControl |
type
|
String |
get
|
Returns the name of the control.
|
set
|
Sets the name of the control.
|
type
|
Number |
get
|
If you use a fixed value for the width of the item, you get the value used for that width.
|
set
|
If you use a fixed value for the width of the item, specify the value used for that width.
|
declaring type
|
EnableUIControl |
type
|
Boolean |
get
|
Returns whether a non-modifiable read-only mode is in effect.
|
set
|
Sets whether to enable read-only mode, which can not be modified.
|
type
|
Boolean |
get
|
Returns whether the close button is visible for the active tab only.
Related properties: [tabItem.closable] When the closable property value is true, the close button is displayed.
|
set
|
Set whether to display the close button only for the active tab.
Related properties: [tabItem.closable] When the closable property value is true, the close button is displayed.
|
type
|
TabFolder$Styler |
readonly
|
Returns the style settings of the control.
In case of style changes, only the corresponding control is updated.
Propagation from style changes does not occur.
|
type
|
Number |
get
|
Returns the control focus order using the Tab Key.
This is a property to control the tabindex of HTML.
|
set
|
Set the control focus order using the Tab Key.
This is a property to control the tabindex of HTML.
|
type
|
Boolean |
get
|
Obtains whether to activate auto-selection when moving a tab item.
|
set
|
Set whether to enable automatic selection when moving tab items.
|
declaring type
|
VisibleUIControl |
type
|
String |
get
|
Returns a description of the control
It works when mouse over.
|
set
|
Set a description for the control.
It works when mouse over.
|
declaring type
|
Control |
type
|
ControlType |
readonly
|
Returns the signature string of the Control's unique Type that can distinguish the Control.
Please refer to ControlType for available constant values.
For UDC controls, each unique type name is returned. Example: udc.MyUDC
|
type
|
Boolean |
get
|
Obtains whether to use ellipsis in text when the item has insufficient display space.
|
set
|
Specifies whether to use ellipsis in text when the item has insufficient display space.
|
declaring type
|
Control |
type
|
String |
readonly
|
Returns the unique ID of the control.
|
declaring type
|
VisibleUIControl |
type
|
Boolean |
get
|
Returns the style property for controlling css visibility.
|
set
|
Sets the style property to control css visibility.
|
Methods
Add listeners by EventType to the control.
Add a listener to the control to handle when a specific event occurs.
var button = new cpr.controls.Button("btn01");
button.addEventListener("click", function(e) {
// event code...
});
name |
type |
description |
type
|
String |
|
listener
|
(e: cpr.events.CEvent)=>Void |
|
Add a listener to the control that will run only once per EventType.
Add a listener to the control to handle when a specific event occurs.
The added listener is automatically deleted after running once.
Since the object of the added listener is changed, when the listener is deleted
It is an object returned after calling addEventListenerOnce and can be deleted.
var button = new cpr.controls.Button("btn01");
button.addEventListenerOnce("click", function(e) {
// event code...
});
name |
type |
description |
type
|
String |
|
listener
|
(e: cpr.events.CEvent)=>Void |
|
return
|
(e: cpr.events.CEvent)=>Void |
The modified Listener object. |
Add a tab item.
name |
type |
description |
tabItem
|
TabItem |
Tab items to add |
Bind that property.
name |
type |
description |
name
|
String |
|
Removes focus from the control.
Close the tab item.
If the closed item contains the embedded app, the "Before-UNLOD" event and the "Close" event are spread.
If one of the handlers cancel the default behavior, the tap item closing operation is canceled.
If the selected tab item is closed, change the nearest item from the index of the closed tab item to the selected tab item.
name |
type |
description |
item
|
TabItem |
TabItem not closed |
Close all tab items.
If the tab item is displaying an embedded app, the "before-unload" and "close" events are propagated.
If one of the event handlers cancels the default action, the tab item will not be closed.
Closes all TabItems except the selected TabItem.
Close the remaining Tabitem except for the arrangement of the array that has been handed over as an argument.
If there is no Tabitem in the array, the rest of the Tabitem will be closed except for the current selected Tabitem.
If the selected item is closed, change it to the tap item that has been passed over to the argument.
name |
type |
description |
itemsToAlive
|
TabItem[] |
An array of TabItems that will not be closed. |
Close Tabitem except Tabitem, which has been handed over as an argument.
If the selected item is closed, change it to the tap item that has been passed over to the argument.
name |
type |
description |
itemToAlive
|
TabItem |
TabItem that will not be closed. |
Determines whether to run the Control's Default Event Handler depending on the state of the Control.
name |
type |
description |
e
|
CEvent |
event |
return
|
Boolean |
Whether the control's event handler is running. |
Forwards specific events.
name |
type |
description |
e
|
CEvent |
|
return
|
Boolean |
Whether to continue processing the default action after propagating the event. |
Removes the objects that the control contains.
Find the parent control.
If includeSelf is true, the parent including the self is found.
name |
type |
description |
predicate
|
(c: cpr.controls.UIControl)=>Boolean |
|
includeSelfoptional
|
Boolean |
defaultfalse
|
Whether you include yourself. |
Assigns focus to the control.
name |
type |
description |
forwardoptional
|
Boolean |
defaulttrue
|
|
Moves focus to the next control.
If there are multiple structural elements that have focus inside a control, focus may transition to the next element.
Moves focus to the previous control.
If there are multiple structural elements that have focus inside a control, focus may transfer to the previous element.
Gets the bounds value of the control relative to the browser's view port.
If the control is not drawn on the screen, an object with all values of 0 is returned.
return
|
Rectangle |
About the position and size of controls in the HTML DOM |
Gets the bounds value of the control relative to the browser's view port.
If the control is not drawn on the screen, an object with all values of 0 is returned.
name |
type |
description |
includeWrap
|
Boolean |
If this value is true, the layout of the parent group gets the area of the node surrounding this control. If false, only get the area of the control node. |
return
|
Rectangle |
About the position and size of controls in the HTML DOM |
Gets the bounds value of the control relative to the browser's view port.
If the control is not drawn on the screen, an object with all values 0 is returned.
name |
type |
description |
options
|
{
includeWrap?: Boolean,
scaled?: Boolean
} |
|
Get items by item name.
name |
type |
description |
name
|
String |
The names of the items to find. |
Recursively gets all child controls contained in this container and all controls contained in subcontainers.
Internal elements such as embedded apps and UDCs are not included in the returned results.
name |
type |
description |
includeSelfoptional
|
Boolean |
defaultfalse
|
Whether to include itself in the return value. |
Recursively gets all child controls contained in this container and all controls contained in subcontainers.
Internal elements such as embedded apps and UDCs are not included in the returned results.
name |
type |
description |
includeSelfoptional
|
Boolean |
defaultfalse
|
Whether to include itself in the return value. |
Returns the App to which the control belongs.
Returns the bind context.
Returns the bind property information for the control.
name |
type |
description |
name
|
String |
|
Get checked tap items.
return
|
TabItem[] |
Array of checked tab items. |
Get the immediate child controls within the container by ID.
name |
type |
description |
childId
|
String |
The ID of the child control to get. |
return
|
UIControl |
Any of the immediate child controls that match the given ID. Returns null if it doesn't exist. |
Get all child controls.
return
|
UIControl[] |
An array of child controls. |
Returns the number of child controls.
return
|
Number |
Number of child controls |
Get the first child control.
Get all the header controls.
Returns all custom DOM DATA attribute names.
return
|
String[] |
An array of all custom DOM DATA attribute names. |
Gets the bounds that the given tab item is displaying on the browser viewport.
name |
type |
description |
item
|
TabItem |
Tab item to get the viewport bounds. |
Get the item by its name.
If there are multiple tab items with the same name, only the first result is returned.
name |
type |
description |
name
|
String |
The name of the item to find. |
Finds and returns a TabItem with the given control as its content. If it does not exist, null code> is returned.
name |
type |
description |
content
|
UIControl |
The content control of the TabItem you want to find. |
return
|
TabItemsDelegate |
Additional action technology objects related to tab items. |
The last child gets control.
Returns the control to be moved by Tab Key or by the autoskip property.
The area being displayed is obtained based on the parent container to which it belongs.
name |
type |
description |
includeWrapoptional
|
Boolean |
defaultfalse
|
If this value is true, the layout of the parent group gets the area of the node surrounding this control. If false, only get the area of the control node. |
Shift + Tab Returns the focus to be moved through the key.
Get the selected tap items.
return
|
TabItem |
Array of selected tab items. |
Use the tab item id (unique number) to get the tab item.
name |
type |
description |
itemId
|
Number |
The id (unique number) of the tab item to find.) |
Get all tap items.
return
|
TabItem[] |
An array of all tab items. |
Returns all custom attribute names.
return
|
String[] |
An array of all custom attribute names. |
Gets the closest parent UI control.
Unlike getParent(), it finds nearby parent controls, including external apps.
Specifies custom DOM properties.
name |
type |
description |
key
|
String |
The attribute name to assign |
value
|
String |
The attribute value to specify. |
Returns a custom DOM property.
name |
type |
description |
key
|
String |
The attribute name to get. |
return
|
String |
Custom properties. |
Specify multiple custom DOM properties at once.
name |
type |
description |
values
|
{[key:string]: String} |
A JSON object containing custom attribute keys/values. |
Get all custom DOM properties in the form of a map.
return
|
{[key:string]: String} |
|
Insert a tab item. The default is inserted before.
name |
type |
description |
index
|
Number |
Where to insert |
tabItem
|
TabItem |
Tab item to insert |
afteroptional
|
Boolean |
defaultfalse
|
Whether to insert before or after the position. |
Returns whether the queried property is bindable and the binding has been configured to obtain a valid value.
Even if no binding is configured and a simple value is specified, it is treated as configured so that a valid value is obtained.
For example, binding to a row index that does not exist in the DataSet is an invalid binding.
name |
type |
description |
name
|
String |
|
Make sure it is a bindable property.
name |
type |
description |
name
|
String |
|
return
|
Boolean |
Confirmation. |
Returns whether the control is floating through an app instance or a specific container.
Returns the status that the screen is showing. Returns false if the visible state of all parents including itself is false.
Removes all child controls.
name |
type |
description |
shouldDisposeoptional
|
Boolean |
defaultfalse
|
|
Removes all event listeners for the control.
Delete all custom DOM DATA attributes.
Delete all custom attributes.
Remove the control.
name |
type |
description |
childControl
|
UIControl |
|
shouldDisposeoptional
|
Boolean |
defaultfalse
|
|
Remove Listener for each EventType in the control.
control.removeEventListener ('click', listener); code> pre>
name |
type |
description |
type
|
String |
Event type. |
listener
|
(e: cpr.events.CEvent)=>Void |
Event listeners. |
Remove all EventType listeners from the control.
control.removeEventListeners ('click'); code> pre>
name |
type |
description |
type
|
String |
Event type. |
Remove the header control.
name |
type |
description |
control
|
UIControl |
Header control to remove |
Removes the user-defined DOM DATA attribute for a specific attribute name.
name |
type |
description |
key
|
String |
The custom DOM DATA attribute name to remove. |
Removes the tab item.
name |
type |
description |
tabItem
|
TabItem |
Tab item to remove |
Removes user-defined attributes for a specific attribute name.
name |
type |
description |
key
|
String |
The custom attribute name to remove. |
Change the order of specific tab items.
name |
type |
description |
item
|
TabItem |
Tab item to change order. |
newIndex
|
Number |
New order. |
isFutureIndexoptional
|
Boolean |
defaultfalse
|
Whether the new index is the tab item order index after the order adjustment.
If this value is false (the default), new indices will be interpreted relative to the current state.
If this value is true> , the new index is interpreted as the index after method execution. (default) |
Sets the bind context.
container.setBindContext({dataControl:grid.dataSet,rowIndex:rowIndex})
Specifies additional behavior related to tab items.
name |
type |
description |
delegate
|
TabItemsDelegate |
Additional action description objects related to tab items. |
Sets the control to be moved by Tab Key or by the autoskip property.
name |
type |
description |
nextControl
|
UIControl |
control. |
Shift + Tab Set the focus to be moved through the key.
name |
type |
description |
prevControl
|
UIControl |
control. |
Specifies the selected tab item.
name |
type |
description |
tabItem
|
TabItem |
tab item to select |
emitEventoptional
|
Boolean |
defaulttrue
|
Whether to propagate events (before-selection-change, selection-change). |
Unbind that property.
name |
type |
description |
name
|
String |
|
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} |
|
Specifies custom data. Unlike user-defined attributes, you can use arbitrary types in addition to strings.
When the control is dispose, all custom data is removed.
name |
type |
description |
key
|
String |
The key of the data to be specified. |
value
|
Object |
Data to specify. |
get custom data
name |
type |
description |
key
|
String |
The key of the data to get. |
Specifies multiple user-defined data.
name |
type |
description |
override
|
{[key:string]: Object} |
A JSON object containing user-defined data. |
Get all your custom data.
return
|
{[key:string]: Object} |
|
Returns a user-defined property.
return
|
Object |
Custom properties. |