What is selector-modifier '*' in the example on Datatables Editor website?

What is selector-modifier '*' in the example on Datatables Editor website?

timothy.ctr.searcy@faa.govtimothy.ctr.searcy@faa.gov Posts: 10Questions: 8Answers: 0

https://editor.datatables.net/examples/inline-editing/fullRowCreate.html

In the example at the above link, there is this code at line 81:

editor.inline(table.cells(this.parentNode, '*').nodes(), {
submitTrigger: -2,
submitHtml: '<i class="fa fa-play"/>'
});

I am confused what is the selector-modifier '*' for the cells?
Thanks.

This question has an accepted answers - jump to answer

Answers

  • rf1234rf1234 Posts: 3,143Questions: 92Answers: 433

    It seems to be the "select all" selector; in this case: all columns.

    I found this in Editor's code somewhere:

  • allanallan Posts: 64,743Questions: 1Answers: 10,712 Site admin
    Answer ✓

    It is indeed an "all" selector. Somewhat unbelievably, after all these years, you are the first to spot that it isn't actually in the row-selector documentation!! I will get that fixed - apologies for the oversight.

    * can also be used as a wildcard (all) selector for column and cell selectors.

    Allan

  • allanallan Posts: 64,743Questions: 1Answers: 10,712 Site admin

    Thinking about it further, it is implicitly in the documentation since * is a CSS wildcard (which is exactly how it is working), so I think the docs are actually okay. However, I see I've explicitly called out #{id} selectors, so it probably makes sense to do so for * as well. I've committed that change and it will be on the site soon.

    Allan

Sign In or Register to comment.