gajus/wholly

Add selection option

Open

#9 ouverte le 2 août 2019

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)JavaScript (29 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (201 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

This will be good if the cells selection is set as an option. For example:

 defaultOptions = {
     highlightHorizontal: null,
     highlightVertical: null,
     selection: 'td, th'
 };

And in code:

table.on('mouseenter', options.selection, function () {
...
}

table.on('mouseleave', options.selection, mouseleave);

So user can decide wich cells are processed.

$('table').wholly({
    highlightHorizontal: 'horizontal-class-name',
    highlightVertical: 'vertical-class-name',
    selection: 'td:not(".skip")'
})

Guide contributeur