Skip to content

Commit

Permalink
Improve Field comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stsrki committed Nov 26, 2024
1 parent 0edd84c commit 6e053a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
11 changes: 7 additions & 4 deletions Source/Blazorise/Base/BaseColumnComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ protected override void BuildClasses( ClassBuilder builder )
protected bool InsideGrid => ParentGrid is not null;

/// <summary>
/// Cascaded <see cref="Row"/> component in which this <see cref="Column"/> is placed.
/// The cascaded <see cref="Row"/> component that contains this <see cref="Column"/>.
/// </summary>
[CascadingParameter] public Row ParentRow { get; set; }

/// <summary>
/// Cascaded <see cref="Grid"/> component in which this <see cref="Column"/> is placed.
/// The cascaded <see cref="Grid"/> component that contains this <see cref="Column"/>.
/// </summary>
[CascadingParameter] public Grid ParentGrid { get; set; }

/// <summary>
/// Defines the column sizes.
/// Defines the sizing configuration for the column, supporting responsive layouts and custom size definitions.
/// </summary>
[Parameter]
public IFluentColumn ColumnSize
Expand All @@ -68,8 +68,11 @@ public IFluentColumn ColumnSize
}

/// <summary>
/// Specifies the content to be rendered inside this <see cref="BaseColumnComponent"/>.
/// Specifies the content to render inside this <see cref="BaseColumnComponent"/>.
/// </summary>
/// <remarks>
/// Use this property to define custom child elements or components to be displayed within the column.
/// </remarks>
[Parameter] public RenderFragment ChildContent { get; set; }

#endregion
Expand Down
8 changes: 4 additions & 4 deletions Source/Blazorise/Components/Field/Field.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ internal void UnHook( BaseComponent component )
protected bool IsFields => ParentFields is not null;

/// <summary>
/// Aligns the controls for horizontal form.
/// Determines whether the form controls should be aligned horizontally, as in a horizontal form layout.
/// </summary>
[Parameter]
public bool Horizontal
Expand All @@ -146,7 +146,7 @@ public bool Horizontal
}

/// <summary>
/// Aligns the flexible container's items when the items do not use all available space on the main-axis (horizontally).
/// Defines how the container's items are aligned along the main axis when there is extra space available.
/// </summary>
[Parameter]
public JustifyContent JustifyContent
Expand All @@ -161,12 +161,12 @@ public JustifyContent JustifyContent
}

/// <summary>
/// Gets or sets the reference to the parent <see cref="Fields"/> component.
/// A reference to the parent <see cref="Fields"/> component in which this component is nested.
/// </summary>
[CascadingParameter] protected Fields ParentFields { get; set; }

/// <summary>
/// Gets or sets the reference to the parent <see cref="Validation"/> component.
/// A reference to the parent <see cref="Validation"/> component in which this component is nested.
/// </summary>
[CascadingParameter] protected Validation ParentValidation { get; set; }

Expand Down

0 comments on commit 6e053a1

Please sign in to comment.