controller.js
1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
angular.module('focaTeclado')
.controller('focaTecladoController', [
'$scope',
function($scope) {
$scope.rows = {};
$scope.rows.alfa = [
['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],
['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'ñ'],
['z', 'x', 'c', 'v', 'b', 'n', 'm',
{type: 'erase', colspan: 3, text: 'Del'}
],
[
{type: 'margin', colspan: 1},
{type: 'button', colspan: 6, text: ' '},
{type: 'enter', colspan: 3, text: 'Enter'}
]
];
$scope.rows.numeric = [
[
{type: 'number', text: '7'},
{type: 'number', text: '8'},
{type: 'number', text: '9'}
],
[
{type: 'number', text: '4'},
{type: 'number', text: '5'},
{type: 'number', text: '6'}
],
[
{type: 'number', text: '1'},
{type: 'number', text: '2'},
{type: 'number', text: '3'}
],
[
{type: 'number', text: '0', colspan: 2},
{type: 'number', text: '/'}
],
[
{type: 'number', text: '.'},
{type: 'number', text: '*'},
{type: 'number', text: '+'}
]
];
}]);