-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat (Builders): Renames set/remove attributes
This is to match up with the names for the internal collection.
- Loading branch information
1 parent
5bd1d02
commit 61c574f
Showing
3 changed files
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
namespace Rhythm.Drop.Builders.Links; | ||
|
||
using Rhythm.Drop.Models.Common.Attributes; | ||
|
||
/// <summary> | ||
/// A contract for creating a link builder which modifies attributes. | ||
/// </summary> | ||
/// <typeparam name="TBuilder">The type of the builder to return after modifying HTML attributes.</typeparam> | ||
public interface IHtmlAttributesLinkBuilder<TBuilder> | ||
{ | ||
/// <summary> | ||
/// Adds an attribute to the current builder. | ||
/// Sets an attribute to the current builder. | ||
/// </summary> | ||
/// <param name="name">The name of the attribute.</param> | ||
/// <param name="value">The value of the attribute.</param> | ||
/// <returns>A <typeparamref name="TBuilder"/>.</returns> | ||
TBuilder IncludeAttribute(string name, object? value); | ||
TBuilder SetAttribute(string name, object? value); | ||
|
||
/// <summary> | ||
/// Removes an attribute from the current builder. | ||
/// </summary> | ||
/// <param name="name">The name of the attribute.</param> | ||
/// <returns>A <typeparamref name="TBuilder"/>.</returns> | ||
TBuilder ExcludeAttribute(string name); | ||
TBuilder RemoveAttribute(string name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters