ActionLink + data-loading-text

0

I need to put this date-loading-text in this action link only I'm not able to

Action Link

 @Html.ActionLink("Voltar", "Listar", "Cadastro", new { cadastroId = id, area = "Formulario" }, new { @class = "btn btn-warning", @style = "margin-right: 735px;" })

data-loading-text

<i class='fa fa-circle-o-notch fa-spin'></i> Carregando"

Can anyone help me?

    
asked by anonymous 24.04.2017 / 21:10

2 answers

0

Just create the anchor via HTML itself.

<a href="@Url.Action("Listar", "Cadastro", new { cadastroId = id, area = "Formulario" })" class="btn btn-warning" style="margin-right: 735px;">
    <i class='fa fa-circle-o-notch fa-spin'></i> Carregando
</a>

See working in .NET Fiddle.

    
25.04.2017 / 14:14
0

Personally I searched here on the net and was able to solve my problem.

 @Html.ActionLink("Voltar", "Listar", "Cadastro", new { cadastroId = id, area = "Formulario" }, new { @class = "btn btn-warning DesabilitarBotao3", data_loading_text = "<i class='fa fa-circle-o-notch fa-spin'></i> Carregando", @style = "margin-right: 735px;" })
    
25.04.2017 / 16:38