-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
224 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,52 @@ | ||
import bb.cascades 1.0 | ||
import bb.system 1.0 | ||
|
||
Sheet { | ||
id: shareTargetPickerSheet | ||
signal shareTargetPicked(variant type); | ||
|
||
Page { | ||
titleBar: TitleBar { | ||
title: "Share" | ||
visibility: ChromeVisibility.Visible | ||
dismissAction: ActionItem { | ||
title: "Cancel" | ||
onTriggered: { | ||
shareTargetPickerSheet.close(); | ||
} | ||
} | ||
} | ||
Container { | ||
Container { | ||
preferredHeight: 0 | ||
horizontalAlignment: HorizontalAlignment.Fill | ||
} | ||
ListView { | ||
dataModel: shareModels | ||
topPadding: 12 | ||
listItemComponents: [ | ||
ListItemComponent { | ||
StandardListItem { | ||
title: ListItemData.title | ||
imageSource: ListItemData.imageSource | ||
} | ||
} | ||
] | ||
onTriggered: { | ||
console.log('list view triggered:', indexPath); | ||
if (indexPath < 0 || indexPath >= shareModels.size()) return; | ||
shareTargetPicked( shareModels.value(indexPath) ); | ||
shareTargetPickerSheet.close(); | ||
} | ||
} // end of ListView | ||
} // end of Main Containre | ||
} // end of Page | ||
|
||
attachedObjects: [ | ||
ArrayDataModel { | ||
id: shareModels | ||
objectName: "shareModels" | ||
} | ||
] | ||
|
||
}// end of Sheet |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters