Posted 7 November 2024, 1:26 am EST
I feel like I am missing something, either from the documentation or just in general regarding the C1 Blazor controls.
I’m having an issue with the C1NumericBox where I cannot center the text within the box.
I have checked:
https://developer.mescius.com/componentone/docs/blazor/online-blazor/numericoverview.html
and
https://developer.mescius.com/componentone/demos/blazor/blazorserverexplorer/NumericBox/Index
They both don’t mention text centering.
I have tried modifying the Style property with TextAlign, the same way the doc mentions how to change width and border colour etc…, but it has no effect.
Style=“@(new C1Style(){ TextAlign = C1StyleTextAlign.Center })”
In writing this post, I did a bit of inspection through the browser and solved it by a way I’ve solved something similar in the past, which was by finding the embedded class, and adding in a modification in CSS.
In short, I did the following in my CSS:
.c1-numeric-box-input-inner {
text-align: center;
}
I feel that Text alignment should be supported via the Style method, the same way the documentation mentions border color etc…
Or at least, the documentation should make reference to the “supported” styles available through the Style method, and then for everything else, it should reference the classes that can be overwritten in CSS to get additional styles.
Will there be updates to the Blazor documentation?
Will there be any documentation specifically around styling?
Will the styling paradigm get a birthday?
Thanks for your feedback.
Kind Regards
James