Added info button to grid/list items on mobile. When the button is pressed, info bubble appears for 750ms or the same infobutton is pressed to dismiss immediately.
65 lines
1.7 KiB
JSON
65 lines
1.7 KiB
JSON
{
|
|
"extensions": {
|
|
"templates": [
|
|
{
|
|
"key": "info-table",
|
|
"templateUrl": "info-table.html"
|
|
},
|
|
{
|
|
"key": "info-bubble",
|
|
"templateUrl": "info-bubble.html"
|
|
}
|
|
],
|
|
"controllers": [
|
|
{
|
|
"key": "InfoController",
|
|
"implementation": "controllers/InfoController.js",
|
|
"depends": [ "$scope", "$timeout", "infoService" ]
|
|
}
|
|
],
|
|
"containers": [
|
|
{
|
|
"key": "bubble",
|
|
"templateUrl": "bubble.html",
|
|
"attributes": [ "bubbleTitle", "bubbleLayout" ],
|
|
"alias": "bubble"
|
|
}
|
|
],
|
|
"gestures": [
|
|
{
|
|
"key": "info",
|
|
"implementation": "gestures/InfoGesture.js",
|
|
"depends": [
|
|
"$timeout",
|
|
"queryService",
|
|
"infoService",
|
|
"INFO_HOVER_DELAY"
|
|
]
|
|
}
|
|
],
|
|
"services": [
|
|
{
|
|
"key": "infoService",
|
|
"implementation": "services/InfoService.js",
|
|
"depends": [
|
|
"$compile",
|
|
"$document",
|
|
"$window",
|
|
"$rootScope"
|
|
]
|
|
}
|
|
],
|
|
"constants": [
|
|
{
|
|
"key": "INFO_HOVER_DELAY",
|
|
"value": 2000
|
|
}
|
|
],
|
|
"representations": [
|
|
{
|
|
"key": "info-button",
|
|
"templateUrl": "templates/info-button.html"
|
|
}
|
|
]
|
|
}
|
|
} |