BuildAttributes Method

For customization code to build html attribute of component

protected override void BuildAttributes(IDictionary<string, object> attributes)
{
    if(HasClicked)
    {
        attributes["onclick"] = HtmlHelper.Event.Create(this, () => { /*...*/ });
    }
}

Last updated