DataTables / DataTables/Vue

No style with datatables

Open
#28 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
78
Forks
16
PR merge metrics
No merged PRs in 30d

Description

When i use the "demo" content i can't get style

<DataTable :data="[[1,2], [3,4]]" class="display">
	<thead>
		<tr>
			<th>A</th>
			<th>B</th>
		</tr>
	</thead>
</DataTable>
import DataTable from 'datatables.net-vue3';
import DataTablesCore from 'datatables.net';

DataTable.use(DataTablesCore);
<style>
@import 'datatables.net-dt';
</style>

As i dont use vite, i try to put the url instad in import:

<style>
@import '../../node_modules/datatables.net-dt/css/jquery.dataTables.min.css';
</style>

No luck

Also i try to copy all css file and puto into <style> tag inside my .vue file. Doesn't work too

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the demo DataTable with the shown datatables.net-vue3 and DataTablesCore imports, then test the documented and node_modules CSS import approaches. Done means the demo table displays the expected DataTables styling without Vite.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.