-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Bootstrap theme is not working #1354
Comments
I'm having the same issue with dark bottom panel when adding the css sheets to my component's .scss file! Any idea what's causing that? |
same here |
Have you tried adding it to styles in
|
@kcbroomall I did try adding it to the angular-cli.json but still getting the same dark bottom pagination panel. |
I'm having the same issue and the only way I get rid of it is to remove my actual
If I remove |
@timothyblue ... but if you integrate with AdminLTE, your action will be destroying the AdminLTE themes. I'm still not yet found the solution of this integration and why it could be happened |
Adding this to the styles.css file worked for me |
I have this same issue when I build Angular 6 with Production configuaration but is okay with dev. It looks due to the following. This works fine in Angular 5. Also, this may be similiar to CleanCss issue -
This shows up in dev as: .ngx-datatable.bootstrap .datatable-footer{ |
Same here. Does anybody could resolve this?? |
thanks it's work for me |
I'm submitting a ... (check one with "x")
Current behavior
Expected behavior
Reproduction of the problem
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
I tried to add the bootstrap them on a component but it's not working
As per the bootstrap component https://github.com/swimlane/ngx-datatable/blob/master/demo/basic/bootstrap.component.ts :
My component :
@Component({ selector: 'basic-bootstrap-theme-demo', template:
<ngx-datatable
class="bootstrap"
[rows]="rows"
[loadingIndicator]="loadingIndicator"
[columns]="columns"
[columnMode]="'force'"
[headerHeight]="40"
[footerHeight]="40"
[limit]="10"
[rowHeight]="'auto'"
[reorderable]="reorderable">
`
})
export class BootstrapThemeComponent {
rows = [];
loadingIndicator: boolean = true;
reorderable: boolean = true;
columns = [
{ prop: 'name' },
{ name: 'Gender' },
{ name: 'Company' }
];
constructor() {
this.fetch((data) => {
this.rows = data;
setTimeout(() => { this.loadingIndicator = false; }, 1500);
});
}
fetch(cb) {
const req = new XMLHttpRequest();
req.open('GET',
https://raw.githubusercontent.com/swimlane/ngx-datatable/master/assets/data/company.json
);}
}`
My component css :
@import '~@swimlane/ngx-datatable/release/index.css'; @import '~@swimlane/ngx-datatable/release/themes/bootstrap.css'; @import '~@swimlane/ngx-datatable/release/assets/icons.css';
I includes bootstrap 3.3.7 link in the index.html page
Here is the result
It should look like :+1
Solution:
ADD themes in parent styles.css file but the folllowing problem occur ;
The text was updated successfully, but these errors were encountered: