On RenderTreeBuilder, add SetUpdatesAttributeName (#11375)

This commit is contained in:
Steve Sanderson 2019-06-20 09:52:12 +02:00 committed by GitHub
parent 0058a58372
commit 56ffc6b582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View File

@ -775,6 +775,7 @@ namespace Microsoft.AspNetCore.Components.RenderTree
public void OpenComponent<TComponent>(int sequence) where TComponent : Microsoft.AspNetCore.Components.IComponent { }
public void OpenElement(int sequence, string elementName) { }
public void SetKey(object value) { }
public void SetUpdatesAttributeName(string updatesAttributeName) { }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct RenderTreeDiff

View File

@ -516,6 +516,24 @@ namespace Microsoft.AspNetCore.Components.RenderTree
}
}
/// <summary>
/// <para>
/// Indicates that the preceding attribute represents an event handler
/// whose execution updates the attribute with name <paramref name="updatesAttributeName"/>.
/// </para>
/// <para>
/// This information is used by the rendering system to determine whether
/// to accept a value update for the other attribute when receiving a
/// call to the event handler.
/// </para>
/// </summary>
/// <param name="updatesAttributeName">The name of another attribute whose value can be updated when the event handler is executed.</param>
public void SetUpdatesAttributeName(string updatesAttributeName)
{
// TODO: This will be implemented in a later PR, once aspnetcore-tooling
// is updated to call this method.
}
/// <summary>
/// Appends a frame representing a child component.
/// </summary>