Skip to content

Add listenToKeys option also to list, datepicker and textarea#101

Open
Ircama wants to merge 2 commits intoejbeaty:masterfrom
Ircama:improved-listenToKeys
Open

Add listenToKeys option also to list, datepicker and textarea#101
Ircama wants to merge 2 commits intoejbeaty:masterfrom
Ircama:improved-listenToKeys

Conversation

@Ircama
Copy link

@Ircama Ircama commented Jul 25, 2022

With this code, list, datepicker and textarea will allow pressing enter or ESC keys.

Usage example of the listenToKeys configuration:

            table.MakeCellsEditable({
                "onUpdate": updateFunction,
                "columns": [0, 1, 2, 3, 4],
                "inputCss": 'input-css-class',
                "confirmationButton": { 
                    "confirmCss": 'btn btn-info btn-sm py-0 px-1 m-1',
                    "cancelCss": 'btn btn-secondary btn-sm py-0 px-1 m-1',
                    "listenToKeys": true
                },
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant