Meteor-Community-Packages / Meteor-Community-Packages/meteor-tabular

Different selectors on same template

Open
#199 11 comments 0 reactions 0 assignees View on GitHub
confirmed bug
Dominant language
JavaScript
Stars
360
Forks
132
PR merge metrics
No merged PRs in 30d

Description

Hi, on my template i'm rendering my table two times but with different selectors

```

{{> tabular table=TabularTables.Ferias selector=coletiva class="table table-striped table-bordered table-hover" id="feriasColetivasDT" width="100%"}}

{{> tabular table=TabularTables.Ferias selector=pessoal class="table table-striped table-bordered table-hover" id="feriasPessoaisDT" width="100%"}}

```

```
Template.ferias.helpers({
coletiva: function(){
return {tipo:'coletiva'};
},
pessoal:function(){
return {tipo:'pessoal'};
}
})
```

Both tables are using the 'coletiva' selector for a strange reason...

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the two TabularTables.Ferias instances in the ferias template with the coletiva and pessoal selectors. Trace how the tabular helper handles selector values for multiple tables, then verify that each rendered table applies its own selector and filtering behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.