Skip to content

Commit

Permalink
[TIMOB-25048] Rename subtitle into description
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed May 17, 2018
1 parent c9a57fc commit 6288401
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public void handleCreationDict(KrollDict dict)
if (dict.containsKey(TiC.PROPERTY_TITLE)) {
shortcutBuilder.setShortLabel(dict.getString(TiC.PROPERTY_TITLE));
}
if (dict.containsKey(TiC.PROPERTY_SUBTITLE)) {
shortcutBuilder.setLongLabel(dict.getString(TiC.PROPERTY_SUBTITLE));
if (dict.containsKey(TiC.PROPERTY_DESCRIPTION)) {
shortcutBuilder.setLongLabel(dict.getString(TiC.PROPERTY_DESCRIPTION));
}
if (dict.containsKey(TiC.PROPERTY_ICON)) {
Object icon = dict.get(TiC.PROPERTY_ICON);
Expand Down
16 changes: 8 additions & 8 deletions apidoc/Titanium/UI/ShortcutItem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: |
Use the <Titanium.UI.createShortcutItem> method to create a shortcut.
extends: Titanium.Proxy
since: "7.2.0"
since: "7.3.0"
methods:
- name: show
summary: Allow the shortcut to show.
Expand All @@ -32,8 +32,8 @@ properties:
platforms: [android, iphone, ipad]
availability: creation

- name: subtitle
description: Subtitle of the shortcut.
- name: description
description: Description of the shortcut.
type: String
platforms: [android, iphone, ipad]
availability: creation
Expand All @@ -50,19 +50,19 @@ examples:
example: |
Create a shortcut item and detect its click with the `shortcutitemclick` event.
var win = Ti.UI.createWindow({backgroundColor: 'grey'}),
btn = Ti.UI.createButton({title: 'TOGGLE SHORTCUT'}),
var win = Ti.UI.createWindow({ backgroundColor: 'grey' }),
btn = Ti.UI.createButton({ title: 'TOGGLE SHORTCUT' }),
shortcut = Ti.UI.createShortcutItem({
id: 'test_shortcut',
title: 'TEST',
text: 'DESCRIPTION'
description: 'DESCRIPTION'
});
Ti.App.addEventListener('shortcutitemclick', function() {
Ti.App.addEventListener('shortcutitemclick', function () {
win.backgroundColor = 'blue';
});
btn.addEventListener('click', function() {
btn.addEventListener('click', function () {
if (shortcut.visible) {
win.backgroundColor = 'red';
shortcut.hide();
Expand Down

0 comments on commit 6288401

Please sign in to comment.