-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
MatTable #277
Comments
Also, is there any way to use MatTable w/o databinding just as a plain table, for look and feel consistency? |
i fix it this on MainLayout |
Newbie here: Its not much, but you could choose one of the columns you prefer and set the style as such:
This way Details column will always get the rest of the available width in the column. It also fixes the column header when its empty. Hope it helps. |
is this issue was fixed? I can't make it work. I'm adding width % to each column
not too much to ask right? any thoughts? |
partially fixed this with min-width, thanks. |
Is this issue still being watched ? Putting min-width in style (for both th and td bleah!) only resizes them when mattable has no data, when it is filled the columns go back to standard size. Sizing of the columns of the table should be managed in some way otherwise this component becomes unusable!
|
I have spent hours fiddling with this with no success. I can't find a way to limit the overall size of the matTable and the individual columns dont want to resize. There needs to be a way to at least make the last column fill the table space otherwise this control is extremely limited as to when you can actually use it. |
Actually, i think i've solved it. By setting width:100% on the 2nd column, it seems to place the last column where i need it to be:
|
By searching how to solve this problem, I found this option on default html table:
But, unfortunatelly, it's not possible to declare on MatTable directly. |
I've created a PR #749 with this proposal for MatTable. |
Html tables do support width in th tags, please see this HTMLFiddle...the problem is that for some reason they are not displayed right with MatBlazor (probably due to a CSS). |
No I don’t think its possible with MatTable. I did manage to get a fixed size to work on the MatSelect buy overriding this CSS :
/*override this stop set select box widths*/
.mdc-select__anchor {
min-width:350px !important
}
So it’s likely there will a CSS for the table, but I don’t see how you could set the width on a column by column basis using CSS, as obviously columns are dynami.
I hope they fix this otherwise I’ll have to find a better table component.
From: Federico Di Marco <[email protected]>
Sent: 11 October 2020 10:49
To: SamProf/MatBlazor <[email protected]>
Cc: Dave Oakley <[email protected]>; Comment <[email protected]>
Subject: Re: [SamProf/MatBlazor] MatTable (#277)
By searching how to solve this problem, I found this option on default html table:
<table>
<colgroup>
<col span="1" style="width: 15%;">
<col span="1" style="width: 15%;">
<col span="1" style="width: 70%;">
<col span="1" style="width: 15%;">
</colgroup>
</table>
But, unfortunatelly, it's not possible to declare on MatTable directly.
Html tables do support width in th tags, please see this HTMLFiddle<https://jsfiddle.net/0zkjbv4w/>...the problem is that for some reason they are not displayed right with MatBlazor (probably due to a CSS).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#277 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANHJKJWDSQZUMLKB7LWDUSTSKF5PLANCNFSM4I4SZQWA>.
|
Hi, Well, on private tests here with the PR #749 , it appears to be one possibility to resolve. |
I might be using an older version of matTable as it does not recognise <MatColGroup> as a valid child component?
From: Henrique Clausing <[email protected]>
Sent: 11 October 2020 22:20
To: SamProf/MatBlazor <[email protected]>
Cc: Dave Oakley <[email protected]>; Comment <[email protected]>
Subject: Re: [SamProf/MatBlazor] MatTable (#277)
No I don’t think its possible with MatTable. I did manage to get a fixed size to work on the MatSelect buy overriding this CSS : /override this stop set select box widths/ .mdc-select__anchor { min-width:350px !important } So it’s likely there will a CSS for the table, but I don’t see how you could set the width on a column by column basis using CSS, as obviously columns are dynami. I hope they fix this otherwise I’ll have to find a better table component. From: Federico Di Marco [email protected]<mailto:[email protected]> Sent: 11 October 2020 10:49 To: SamProf/MatBlazor [email protected]<mailto:[email protected]> Cc: Dave Oakley [email protected]<mailto:[email protected]>; Comment [email protected]<mailto:[email protected]> Subject: Re: [SamProf/MatBlazor] MatTable (#277<#277>) By searching how to solve this problem, I found this option on default html table:
But, unfortunatelly, it's not possible to declare on MatTable directly. Html tables do support width in th tags, please see this HTMLFiddlehttps://jsfiddle.net/0zkjbv4w/...the problem is that for some reason they are not displayed right with MatBlazor (probably due to a CSS). — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#277 (comment)<#277 (comment)>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANHJKJWDSQZUMLKB7LWDUSTSKF5PLANCNFSM4I4SZQWA.
Hi,
Well, on private tests here with the PR #749<#749> , it appears to be one possibility to resolve.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#277 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANHJKJVA3FO27UNGNBCL25DSKIORFANCNFSM4I4SZQWA>.
|
Hi @daveoakley , The Pull Request for this feature isn't approved by admin yet. It's not available for all. I have only on my fork of this repository here. |
Having the same issue, really hoping the PR gets approved, merged a new new NuGet gets released ^_^ |
Same issue. |
What is your issue? Can you post your code? I just started using MatBlazor but do not have this issue with my tables. |
|
for anyone with the same issue as Gitsheva above, I found a workaround. Just put a bunch of non-breaking spaces after your column header name until its as wide as you want and you don't get the weird white-space bug |
I think this product has been abandoned, I don't see any replies for a long time. |
What do I use to control cell and table width on the MatTable?
This is the standard fetch weather data from Blazor examples converted to MatBlazor.
The table is so big that it gets a horizontal scrollbar.
And cells are cramped together.
Are there any settings Im missing, or am I just supposed to use normal styles?
The text was updated successfully, but these errors were encountered: