Skip to content

Commit 2779998

Browse files
committed
Update Blazorise 2.0 migration guide
1 parent c01fa54 commit 2779998

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/en/release-info/migration-guides/blazorise-2-0-migration.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ Migrate old binding/value APIs to the new `Value` model.
3939
- `@bind-Checked` -> `@bind-Value`
4040
- `Checked` / `CheckedChanged` -> `Value` / `ValueChanged`
4141
- `CheckedValue` / `CheckedValueChanged` -> `Value` / `ValueChanged`
42+
- `@bind-Date` / `@bind-Time` -> `@bind-Value`
43+
- `Date` / `DateChanged` -> `Value` / `ValueChanged`
44+
- `Time` / `TimeChanged` -> `Value` / `ValueChanged`
4245
- `@bind-SelectedValue` (for `Select`) -> `@bind-Value`
4346
- `SelectedValue` / `SelectedValueChanged` (for `Select`) -> `Value` / `ValueChanged`
4447

@@ -50,6 +53,12 @@ For `SelectionMode="DateInputSelectionMode.Range"`:
5053

5154
- `ValueChanged` -> `ValuesChanged`
5255

56+
### DatePicker single value mode
57+
58+
For non-range `DatePicker` usage:
59+
60+
- `Date` / `DateChanged` -> `Value` / `ValueChanged`
61+
5362
### Select multiple mode
5463

5564
For `<Select Multiple ...>`:
@@ -81,6 +90,7 @@ Typical updates:
8190
- `context.Property` -> `context.Item.Property`
8291
- `Method(context)` -> `Method(context.Item)`
8392
- `() => Method(context)` -> `() => Method(context.Item)`
93+
- For custom template variable names, same rule applies: `row.Property` -> `row.Item.Property`
8494

8595
Important: This change applies to DataGrid template contexts only (`DisplayTemplate` in `DataGridColumn`, `DataGridEntityActionsColumn`, etc.). In non-DataGrid templates (for example `TreeView` `NodeContent`), `context` is already the item and should remain unchanged (for example `DeleteMenuItemAsync(context)`).
8696

@@ -90,6 +100,7 @@ DataGrid column `Width` moved from plain string to fluent sizing APIs:
90100

91101
- `Width="30px"` -> `Width="Width.Px(30)"`
92102
- `Width="60px"` -> `Width="Width.Px(60)"`
103+
- `Width="0.5rem"` -> `Width="Width.Px(8)"` (or another equivalent pixel value)
93104
- `Width="50%"` -> `Width="Width.Percent(50)"` or `Width="Width.Is50"`
94105
- `Width="100%"` -> `Width="Width.Is100"`
95106

0 commit comments

Comments
 (0)