jQWidgets Forums

jQuery UI Widgets Forums General Discussions Extend Widget and Knockout

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  stailer 12 years, 1 month ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • Extend Widget and Knockout #20180

    stailer
    Member

    Hello,

    I would like create an extend on jqxButton with a new property.

    Sample :
    <input type=”button” data-bind=”jqxButton : {
    customProperty: ‘my value’
    ,   width:200, theme:’darkblue’
    }” />

    But i have error on my browser : “invalid property : customProperty”

    An idea for a solution ?

    Extend Widget and Knockout #20187

    Peter Stoev
    Keymaster

    Hi,

    We do not have API for extending widgets with new properties and methods.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Extend Widget and Knockout #20193

    stailer
    Member

    I can extend methods !

    $.exend($.jqx._jqxButton.prototype, {

    MyCustomMethod : function() {
    alert(“Test !”);
    }

    });

    $(“myDiv”).jqxButton(‘MyCustomMethod’);

    With this technique by “extend”, i can’t add a property ?!

    I can too add this method :

    createInstance() {
    this.theme = ‘darkblue’
    }

    But there is a bug… i can’t call parent “createInstance”. A solution ?

    Thanks for your reply !

    Extend Widget and Knockout #20195

    Peter Stoev
    Keymaster

    Hi,

    As I already written, we do not have API and documentation for extending the widgets. In addition, creating derivative work is not allowed according to our EULA.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Extend Widget and Knockout #20197

    stailer
    Member

    Yes but i must extend components in my application.

    It’s logic : i must add business functionnalities ! (Rules System, Automatic creation etc…).

    Like in ExtJS or JQuery UI… I can build my owns components. : (

    Extend Widget and Knockout #20198

    Peter Stoev
    Keymaster

    Hi,

    If you are a licensed developer then according to the EULA you are allowed to modify and extend the original source code and distribute it in minimized(obfuscated) format. Unfortunately, we do not have however documentation about creating custom widgets using our scripts or extending the existing widgets.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Extend Widget and Knockout #20199

    stailer
    Member

    Ok !

    Thanks for your replies

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.