Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 968 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 968 Bytes

cp-keyboard-angularjs

Demo

Demo

Example:

<input type="text" ng-model="foo" cp-keyboard>

Custom Add Rows Controller:

$scope.loginKeyboardCustomRows = [
    {
        chars: [
            {
                action: "hide",
                lowercase: { text: "OK", value: "" },
                uppercase: { text: "OK", value: "" },
            },
            {
                action: function () {
                    console.log('send action');
                },
                lowercase: {text: "Send",value: ""},
                uppercase: { text: "Send",value: ""},
            },
        ]
    }
];

Html:

<input type="text" ng-model="user.userName" cp-keyboard custom-rows="loginKeyboardCustomRows">

Service:

cpKeyboardService