File tree 3 files changed +11
-2
lines changed
blazorbootstrap/Components/Grid
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 69
69
GridColumnFilterChanged =" async args => await column.OnFilterChangedAsync(args, column)"
70
70
PropertyType =" @column.GetPropertyType()"
71
71
PropertyTypeName =" @column.GetPropertyTypeName()"
72
- Unit =" @Unit " />
72
+ Unit =" @column.FilterTextboxWidthUnit " />
73
73
}
74
74
</th >
75
75
}
Original file line number Diff line number Diff line change @@ -248,6 +248,15 @@ private async Task OnSortClickAsync()
248
248
[ Parameter ]
249
249
public int FilterTextboxWidth { get ; set ; }
250
250
251
+ /// <summary>
252
+ /// Gets or sets the filter textbox width units.
253
+ /// </summary>
254
+ /// <remarks>
255
+ /// Default value is <see cref="Unit.Px" />.
256
+ /// </remarks>
257
+ [ Parameter ]
258
+ public Unit FilterTextboxWidthUnit { get ; set ; } = Unit . Px ;
259
+
251
260
/// <summary>
252
261
/// Gets or sets the filter value.
253
262
/// </summary>
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ or StringConstants.PropertyTypeNameDecimal
183
183
[ Parameter ]
184
184
public GridFiltersTranslationDelegate FiltersTranslationProvider { get ; set ; } = default ! ;
185
185
186
- private string filterStyle => FilterWidth > 0 ? $ "width:{ FilterWidth . ToString ( CultureInfo . InvariantCulture ) } { Unit . ToString ( ) . ToLower ( ) } ;" : "" ;
186
+ private string filterStyle => FilterWidth > 0 ? $ "width:{ FilterWidth . ToString ( CultureInfo . InvariantCulture ) } { Unit . ToCssString ( ) } ;" : "" ;
187
187
188
188
/// <summary>
189
189
/// Gets or sets filter value.
You can’t perform that action at this time.
0 commit comments