BuildAttributes Method

重写并自定义组件的属性

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

Last updated