Class type Goog.​Ui.​tabBar

class type tabBar = object..end

Inherits


method removeChild : 
'a.
(Js.js_string Js.t, (#control as 'a) Js.t) Goog.Tools.Union.t ->
bool Js.t Js.opt -> control Js.t Js.meth

Removes the tab from the tab bar. Overrides the superclass implementation by deselecting the tab being removed. Since #removeChildAt uses removeChild internally, we only need to override this method. Returns The removed tab, if any.

method getLocation : TabBar.location_pre Js.meth

Returns Tab bar location relative to tab contents.

method setLocation : TabBar.location_pre -> unit Js.meth

Sets the location of the tab bar relative to tab contents.

method isAutoSelectTabs : bool Js.t Js.meth

Returns Whether keyboard navigation should change the selected tab, or just move the highlight.

method setAutoSelectTabs : bool Js.t -> unit Js.meth

Enables or disables auto-selecting tabs using the keyboard. If auto-select is enabled, keyboard navigation switches tabs immediately, otherwise it just moves the highlight.

method setHighlightedIndexFromKeyEvent : int -> unit Js.meth

Highlights the tab at the given index in response to a keyboard event. Overrides the superclass implementation by also selecting the tab if isAutoSelectTabs returns true.

method getSelectedTab : control Js.t Js.opt Js.meth

Returns The currently selected tab (null if none).

method setSelectedTab : 'b. (#control as 'b) Js.t Js.opt -> unit Js.meth

Selects the given tab.

method getSelectedTabIndex : int Js.meth

Returns Index of the currently selected tab (-1 if none).

method setSelectedTabIndex : int -> unit Js.meth

Selects the tab at the given index.

method deselectIfSelected : 'c. (#control as 'c) Js.t -> unit Js.meth

If the specified tab is the currently selected tab, deselects it, and selects the closest selectable tab in the tab bar (first looking before, then after the deselected tab). Does nothing if the argument is not the currently selected tab. Called internally when a tab is removed, hidden, or disabled, to ensure that another tab is selected instead.

method isSelectableTab : 'd. (#control as 'd) Js.t -> bool Js.t Js.meth

Returns true if the tab is selectable, false otherwise. Only visible and enabled tabs are selectable. Returns Whether the tab is selectable.

method handleTabSelect : 
'e. (#Goog.Events.event as 'e) Js.t -> unit Js.meth

Handles events dispatched by tabs as they become selected.

method handleTabUnselect : 
'f. (#Goog.Events.event as 'f) Js.t -> unit Js.meth

Handles events dispatched by tabs as they become deselected.

method handleTabDisable : 
'g. (#Goog.Events.event as 'g) Js.t -> unit Js.meth

Handles events displayed by tabs.

method handleTabHide : 
'h. (#Goog.Events.event as 'h) Js.t -> unit Js.meth

Handles events displayed by tabs.

method handleFocus : 'i. (#Goog.Events.event as 'i) Js.t -> unit Js.meth

Handles focus events dispatched by the tab bar's key event target. If no tab is currently highlighted, highlights the selected tab or the first tab if no tab is selected either.

method getOrientationFromLocation : 
TabBar.location_pre -> Container.orientation_pre Js.meth

Returns the goog.ui.Container.Orientation that is implied by the givengoog.ui.TabBar.Location. Returns Corresponding orientation.