jquery - How to use classes of oject in a widget with KendoUI -


i try use custom classes in widget. it's first project kendoui, , wuld create plugin object oriented.

var person = kendo.class.extend({      firstname: 'not set',      lastname: 'not set',      isaprettycoolperson: false,      sayhello: function() {          alert("hello! i'm " + this.firstname + " " + this.lastname);      }  }); 

and widget :

(function($, undefined) {      var kendo = window.kendo,         ui = kendo.ui,         widget = ui.widget;      var mywidget = widget.extend({          init: function(element, options) {             var = this, id;              // base call initialize widget             widget.fn.init.call(that, element, options);             element = that.wrapper = that.element;             options = that.options;             options.url = window.unescape(options.url);         },          options: {             name: "mywidget",         url: ""         },     });      ui.plugin(mywidget);  })(jquery); 

how can use tis class in widget ? me please ? ! :)


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -