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

Tabular DT Editor Integration

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

Description

I’ve gotten other DT extensions to work in this Meteor wrapper by doing something like the following

In Client Side Code
e.g.

I import an extension at the top of the module as such

`import scroller from 'datatables.net-scroller-bs';`

Then – I apply it to the window and jQuery instance by doing the following…
`scroller(window, $);`


Then --- in “Common Code”
I create a DT instance using the wrapper’s constructor

I do something like the following to get an extension to load

```
const profilesTable = new Tabular.Table({
name: 'Profiles',

//This is basically the ajax part…(except this comes from MongoDB via Pub/Sub…feature that is specific to Meteor)
collection: Profiles,

//This configures scroller and gets it to work on client side
scroller: {
loadingIndicator: true
},

columns: [
MY_COLS
],

});
```


I’m able to import Editor on client side by doing
`import editor from 'datatables.net-editor';`

However, attempting to attach it to the window and jQuery like every other DT extension doesn’t work.
`editor(window, $);`

Looks like this is because Editor exports a TS Class and is not a Constructor expecting those params.

Contributor guide

Open the contributing guide

Research direction

Start with the client-side import and initialization shown in the issue, then inspect how other DataTables extensions are integrated into meteor-tabular. Verify the datatables.net-editor export and its interaction with window and jQuery. Done means Editor can be initialized in the Meteor wrapper through the Tabular.Table workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.