Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timob 7234 Tabgroup implementation. #1445

Merged
merged 5 commits into from Feb 17, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
112 changes: 106 additions & 6 deletions apidoc/Titanium/UI/TabGroup.yml
Expand Up @@ -22,13 +22,13 @@ description: |
On iOS, tabs can be removed, and the user may (optionally)
be allowed to reorder tabs.

On iOS, it is
also possible to add tabs by updating the [tabs](Titanium.UI.TabGroup.tabs) property,
and to switch active tabs by setting the [active](Titanium.UI.Tab.active)
property on one of the tabs to `true`. Since these mechanisms are platform-specific,
it is recommended that you use `addTab` and `setActiveTab` instead.
On iOS and Mobile Web, it is also possible to add tabs by updating the
[tabs](Titanium.UI.TabGroup.tabs) property, and to switch active tabs by setting
the [active](Titanium.UI.Tab.active) property on one of the tabs to `true`. Since
these mechanisms are platform-specific, it is recommended that you use `addTab`
and `setActiveTab` instead.

If you use the iOS-specific mechanisms, it is possible to add multiple active tabs
If you use the iOS/Mobile Web-specific mechanisms, it is possible to add multiple active tabs
to a tab group. In this case, the result of which tab is initially selected is
undefined.
extends: Titanium.UI.View
Expand Down Expand Up @@ -123,3 +123,103 @@ properties:
type: Number
platforms: [android]
availabilty: creation
- name: tabsBackgroundColor
summary: The default background color for tabs. If [backgroundColor](Titanium.UI.Tab.backgroundColor) is explicitly set on an individual tab, that value takes precidence.
type: String
platforms: [android, mobileweb]
- name: tabsBackgroundImage
summary: The default background image for tabs. If [backgroundImage](Titanium.UI.Tab.backgroundImage) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: tabsBackgroundDisabledColor
summary: The default background disabled color for tabs. If [backgroundDisabledColor](Titanium.UI.Tab.backgroundDisabledColor) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: tabsBackgroundDisabledImage
summary: The default background disabled image for tabs. If [backgroundDisabledImage](Titanium.UI.Tab.backgroundDisabledImage) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: tabsBackgroundFocusedColor
summary: The default background focused color for tabs. If [backgroundFocusedColor](Titanium.UI.Tab.backgroundFocusedColor) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: tabsBackgroundFocusedImage
summary: The default background focused image for tabs. If [backgroundFocusedImage](Titanium.UI.Tab.backgroundFocusedImage) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: tabsBackgroundSelectedColor
summary: The default background selected color for tabs. If [backgroundSelectedColor](Titanium.UI.Tab.backgroundSelectedColor) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: tabsBackgroundSelectedImage
summary: The default background selected image for tabs. If [backgroundSelectedImage](Titanium.UI.Tab.backgroundSelectedImage) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: activeTabBackgroundColor
summary: The default background color for the active tab. If [backgroundColor](Titanium.UI.Tab.backgroundColor) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: activeTabBackgroundImage
summary: The default background image for the active tab. If [backgroundImage](Titanium.UI.Tab.backgroundImage) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: activeTabBackgroundDisabledColor
summary: The default background disabled color for the active tab. If [backgroundDisabledColor](Titanium.UI.Tab.backgroundDisabledColor) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: activeTabBackgroundDisabledImage
summary: The default background disabled image for the active tab. If [backgroundDisabledImage](Titanium.UI.Tab.backgroundDisabledImage) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: activeTabBackgroundFocusedColor
summary: The default background focused color for the active tab. If [backgroundFocusedColor](Titanium.UI.Tab.backgroundFocusedColor) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: activeTabBackgroundFocusedImage
summary: The default background focused image for the active tab. If [backgroundFocusedImage](Titanium.UI.Tab.backgroundFocusedImage) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: activeTabBackgroundSelectedColor
summary: The default background selected color for the active tab. If [backgroundSelectedColor](Titanium.UI.Tab.backgroundSelectedColor) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: activeTabBackgroundSelectedImage
summary: The default background selected image for the active tab. If [backgroundSelectedImage](Titanium.UI.Tab.backgroundSelectedImage) is explicitly set on an individual tab, that value takes precidence.
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: tabDividerColor
summary: The color of the divider between tabs
type: String
since: "1.9.0"
platforms: [android, mobileweb]
- name: tabDividerWidth
summary: The width of the divider between tabs.
description: |
This width is relative to the tabgroup's parent. Can be either a float value or
a dimension string (for example, '50%' or 'auto').
type: [Number,String]
since: "1.9.0"
platforms: [android, mobileweb]
- name: tabHeight
summary: The height of the tabs.
description: |
This height is relative to the tabgroup's parent. Can be either a float value or
a dimension string (for example, '50%' or 'auto').
type: [Number,String]
since: "1.9.0"
platforms: [mobileweb]
14 changes: 0 additions & 14 deletions mobileweb/themes/common.css
Expand Up @@ -231,20 +231,6 @@ textarea {
to(#666));
}

.TiUITab {
background-color: silver;
border: solid 1px black;
}
.TiUITab:active {
background-color: gray;
}
.TiUITab.TiActiveTab {
background-color: white;
}
.TiUITab.TiActiveTab:active {
background-color: gray;
}

.TiMediaVideoPlayer video {
left: 0;
position: absolute;
Expand Down