Datatable columns not showing inline
See original GitHub issueHey guys,
I might be doing something wrong since I don’t see any other posts regarding this problem, but I assume I am not since I’m experiencing this issue with a just created project as well.
I am just trying to create a data-table, but the columns are showing up underneath each other instead of next to each other.
I have simply copied the basic example that can be found in the ‘demo’ folder
@Component({
selector: 'app-root',
template: `
<div>
<h3>Fluid Row Heights</h3>
<datatable
class="material"
[rows]="rows"
[columns]="columns"
[columnMode]="'force'"
[headerHeight]="50"
[footerHeight]="50"
[rowHeight]="'auto'">
</datatable>
</div>
`,
styleUrls: ['./app.component.css']
})
export class AppComponent {
rows = [];
columns = [
{ prop: 'name' },
{ name: 'Gender' },
{ name: 'Company' }
];
constructor() {
this.fetch((data) => {
this.rows = data;
});
}
fetch(cb) {
const req = new XMLHttpRequest();
req.open('GET', `assets/data.json`);
req.onload = () => {
cb(JSON.parse(req.response));
};
req.send();
}
}
but even with just a clean newly created project, with only this plugin added, the problem still occurs:
Any ideas?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Inline editing not working with hidden columns - DataTables
Hey guys i got a problem with inline editing. I have hidden some columns by default and they get shown on click of...
Read more >Inline Column Width not working with DataTables
I have been trying to scratch my head with ...
Read more >Solved: Column Name is not shown when an inline action but...
I believe so, yes. Typically, a column has only one inline action attached to it. In that case, the column name would likely...
Read more >Unable to Get Lightning Datatable Columns in Inline Edit Event
I am new to building a Lightning Web Component and I have what feels like a basic validation using the row's data for...
Read more >Inline editing not working in datatable - Salesforce Developers
Inline editing not working in datatable ... Three important parts of datatable is Key , data and columns so we need attribute for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Did you import the datatable css styles?
I’m gonna be adding this by default in next release.