Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
510
Why don't you provide a fluent API for JQuery controls?
posted

Your fluent APi in html helper is very cool.

Why don't you provide the same approach in javascript side?

For example,  I'd like to use the Option API like this:

$("#comboCurrency").igCombo().option().isEnable(false);

But, I need to use Option API like this:

$("#comboCurrency").igCombo("option", "disabled", false);

 


 


  • 2735
    Suggested Answer
    posted

    Hi,

    Our countrols are based on jQuery and you can use Fluent API.

    If you have igCombo control, you can change option in this way:

    // Set

    var combo = $("#combo").data("igCombo").option("autoComplete", true) ;

    // Get

    var combo = $("#combo").data("igCombo").option("autoComplete") 

    You can find more infromation for how widgets are build here.

    Regards,

    Stanimir Todorov