Editor inline editing active cell class

Editor inline editing active cell class

dmryzhkovdmryzhkov Posts: 8Questions: 3Answers: 0

I use the Editor, inline () editing. If I use Inline editing on the Tab focus, the "focus" class is assigned to the cell and CSS creates an ugly square 3px blue outline. In the example, there is no such problem, and the settings are the same.

Answers

  • allanallan Posts: 63,871Questions: 1Answers: 10,525 Site admin

    This example? Click the "CSS" tab below the table and you'll see the CSS used to correct the styling for that example.

    Allan

  • dmryzhkovdmryzhkov Posts: 8Questions: 3Answers: 0

    No, https://editor.datatables.net/examples/inline-editing/tabControl.html. In the example, the selected cell is not assigned the "focus" class , but I'm assigned <td class="focus">.

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    So is your CSS the same as that in the example?

  • allanallan Posts: 63,871Questions: 1Answers: 10,525 Site admin

    I'm not quite understanding either. What code are you using to add the focus? If you could link to the page showing the issue, that would be helpful.

    Allan

  • dmryzhkovdmryzhkov Posts: 8Questions: 3Answers: 0
  • allanallan Posts: 63,871Questions: 1Answers: 10,525 Site admin

    That example doesn't include the KeyTable CSS, which would explain why it doesn't have the focus ring on the cell. The code you are using must include that CSS.

    Allan

  • dmryzhkovdmryzhkov Posts: 8Questions: 3Answers: 0

    Im try to use CDN href="//cdn.datatables.net/keytable/2.2.0/css/keyTable.dataTables.min.css"

    If i comment this code:

                keys: {
                    columns: ':not(:first-child)',
                    keys: [ 9 ],
                },
    

    blue outline is missing

  • allanallan Posts: 63,871Questions: 1Answers: 10,525 Site admin

    Yes, my point was that the example I linked to above doesn't include that CSS file. Thus there is no blue outline showing the cell focus. You could not include that file as well, or you could override the CSS.

    Allan

This discussion has been closed.