How to set FluentGridItem column widths (sm=x) at runtime #1821
Replies: 1 comment 1 reply
-
You can use a code like this one. <FluentGridItem sm="@GridSM">
Cell 0
</FluentGridItem
@code {
private int? GridSM;
private void OnBtnClick()
{
GridSM = 4
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can we set the
FluentGridItem.sm
property at runtime? I'm trying to create a dynamic grid that the user can switch between 1x, 2x2, and 3x3 cells. So far I've tried this:The designer shows this green squiggly on
cell0.sm = 4
:Is there a preferred way to pull this off?
Beta Was this translation helpful? Give feedback.
All reactions