Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clearify DataTable.addRow() docs a bit more #811

Open
ItsAsbreuk opened this issue May 31, 2013 · 0 comments
Open

Clearify DataTable.addRow() docs a bit more #811

ItsAsbreuk opened this issue May 31, 2013 · 0 comments

Comments

@ItsAsbreuk
Copy link

At first glance, it is not clear how to add a row at a specific position, for instance:

dt.addRow(newrecord, {index: 1});

The current docs say: [config]: Configuration to pass along

Only if you realize this is the config that is passed to the data-ModelList and you look at ModelList.add, then you find out that [config] is an object with the fields 'index' and 'silent'.

It would be better to define this inside the datatable-docs, just as well as it is defined in the ModelList-doc

Regards,
Marco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant