On RenderTreeBuilder, add SetUpdatesAttributeName (#11375)
This commit is contained in:
parent
0058a58372
commit
56ffc6b582
|
|
@ -775,6 +775,7 @@ namespace Microsoft.AspNetCore.Components.RenderTree
|
||||||
public void OpenComponent<TComponent>(int sequence) where TComponent : Microsoft.AspNetCore.Components.IComponent { }
|
public void OpenComponent<TComponent>(int sequence) where TComponent : Microsoft.AspNetCore.Components.IComponent { }
|
||||||
public void OpenElement(int sequence, string elementName) { }
|
public void OpenElement(int sequence, string elementName) { }
|
||||||
public void SetKey(object value) { }
|
public void SetKey(object value) { }
|
||||||
|
public void SetUpdatesAttributeName(string updatesAttributeName) { }
|
||||||
}
|
}
|
||||||
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
||||||
public readonly partial struct RenderTreeDiff
|
public readonly partial struct RenderTreeDiff
|
||||||
|
|
|
||||||
|
|
@ -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>
|
/// <summary>
|
||||||
/// Appends a frame representing a child component.
|
/// Appends a frame representing a child component.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue