LikeButton
Namespace: SlottyMedia.Components.Partial
public class LikeButton : Microsoft.AspNetCore.Components.ComponentBase, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleEvent, Microsoft.AspNetCore.Components.IHandleAfterRender
Inheritance Object → ComponentBase → LikeButton
Implements IComponent, IHandleEvent, IHandleAfterRender
Properties
Class
Additional CSS classes to apply to the outer SVG image.
public string Class { get; set; }
Property Value
Initial
The button's initial value. If true, this button is "turned on".
public Nullable<bool> Initial { get; set; }
Property Value
OnClick
An event that is triggered when this button is clicked. The callback's parameter is a boolean that represents the button's new state.
public EventCallback<bool> OnClick { get; set; }
Property Value
EventCallback<Boolean>
Constructors
LikeButton()
public LikeButton()
Methods
BuildRenderTree(RenderTreeBuilder)
protected void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder RenderTreeBuilder
OnInitialized()
protected void OnInitialized()