Skip to content

Commit

Permalink
Added OnComplete property missing in AjaxOptions class
Browse files Browse the repository at this point in the history
  • Loading branch information
bantikyan committed Jan 30, 2018
1 parent 3b7c547 commit bf33f1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/X.PagedList.Mvc.Core/AjaxOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,22 @@ namespace X.PagedList.Mvc.Core
{
public class AjaxOptions
{
public IEnumerable<HtmlAttribute> ToUnobtrusiveHtmlAttributes()
public virtual IEnumerable<HtmlAttribute> ToUnobtrusiveHtmlAttributes()
{
return new List<HtmlAttribute>
{
new HtmlAttribute {Key = "data-ajax-method", Value = HttpMethod},
new HtmlAttribute {Key = "data-ajax-mode", Value = InsertionMode},
new HtmlAttribute {Key = "data-ajax-update", Value = "#" + UpdateTargetId},
new HtmlAttribute {Key = "data-ajax", Value = "true"}
new HtmlAttribute {Key = "data-ajax", Value = "true"},
new HtmlAttribute {Key = "data-ajax-complete", Value = OnComplete}
};
}

public string HttpMethod { get; set; }
public InsertionMode InsertionMode { get; set; }
public string UpdateTargetId { get; set; }
public string OnComplete { get; set; }
}

public enum InsertionMode
Expand Down

0 comments on commit bf33f1a

Please sign in to comment.