-
Notifications
You must be signed in to change notification settings - Fork 884
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
Table works, but without style #504
Comments
Same here, tired. |
Even i faced same issue. But I have added external css using (/deep/). |
Did you find any solution ? |
Up! |
@mfsi-surajs I did not, just using it "as is" for the time being. |
@zezke Got a temporary workaround, paste below style in your css or scss file
|
please give right ansers |
use below configuration in the settings object
and
Example :
|
I struggled a bit with this too. I was getting no grid and was quite annoying. Here what worked for me. I have added this into the css file for my component. I hope this helps:
|
It worked for me. Thanks!!! |
I need to change color of table-bordered, i tried border-color ... doesn´t work. |
What if i wanted the default style? i mean, the one showing when you install a full ngx-admin? thank you! |
Did you find a way to use it with ngx-admin? I did install ngx-admin, then I somehow have to install ng2-smart-table separately, and now it is ugly as hell, not the gorgeous, corner-rounded one shown in the demo. |
Hi @nvmnghia |
Hi, Edit: I saw the screenshot attached in the smart table page, and indeed the component works :) just not the way in the Nebular page. |
You are right, some steps in the nebular setup instruction are missed. smart table page example just add some basic styles to table table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
table th {
font-weight: bold;
}
table th, table td {
padding: 0.5rem 1rem;
border: 1px solid #e9ebec;
}
table tr.section {
font-size: .75rem;
font-weight: bold;
} |
@SashaSkywalker Please update it. Also, what are the purposes of import { ThemeModule } from '../../@theme/theme.module'; And now I lost the icons :v. The reason why I got text instead of icons in the previous reply was that I didn't notice the I will try your method in the next hour. |
I think some CSS is not loaded in my case. When I paste the CSS |
I fixed my issue. I installed some missing styles package in Styles I installed: "styles": [
"./node_modules/bootstrap/dist/css/bootstrap.css",
"./node_modules/typeface-exo/index.css",
"./node_modules/roboto-fontface/css/roboto/roboto-fontface.css",
"./node_modules/@fortawesome/fontawesome-free/css/all.css",
"./node_modules/socicon/css/socicon.css",
"./node_modules/nebular-icons/scss/nebular-icons.scss",
"./node_modules/angular-tree-component/dist/angular-tree-component.css",
"./node_modules/pace-js/templates/pace-theme-flash.tmpl.css",
"./node_modules/leaflet/dist/leaflet.css",
] |
Hey man thanks |
to edit table you can use : you can edit td too using :
background-repeat: no-repeat !important; /* Do not repeat the image */
|
I am quite a rookie with Angular. I was under the impression that using ng2-smart-table would automatically apply the included CSS style. However it does not, the page is rather dull without any table borders. I am missing something? Should I include some version of Twitter Bootstrap?
The text was updated successfully, but these errors were encountered: