Characteristics.qml Example File
bluetoothgatt/assets/Characteristics.qml
import bb.cascades 1.0
Page {
objectName: "CharacteristicsPage"
titleBar: TitleBar {
title: qsTr("Characteristics")
}
attachedObjects: [
ComponentDefinition {
id: characteristicsEditorPage
source: "CharacteristicsEditor.qml"
}
]
Container {
ListView {
dataModel: _bluetoothGatt.characteristicsModel
onTriggered: {
if (indexPath.length > 0) {
_bluetoothGatt.viewCharacteristicsEditor(indexPath[0]);
navigationPane.push(characteristicsEditorPage.createObject())
}
}
listItemComponents: [
ListItemComponent {
type: "item"
Container {
topPadding: 10
leftPadding: 10
rightPadding: 10
Label {
text: ListItemData.uuid
}
Label {
text: ListItemData.name
}
Divider {
}
}
}
]
}
}
}