Nokia.Widget
This is the basic class for Guarana Components.
Not Applicable for this component.
Not Applicable for this component.
<!-- jQuery file --> <script src="/lib/jquery/jQuery.js" type="text/javascript" charset="utf-8"></script> <!-- Guarana file --> <script src="/lib/Guarana.js" type="text/javascript" charset="utf-8"></script>
Not Applicable for this component.
Not Applicable for this component.
Not Applicable for this component.
Nokia.SampleWidget = Nokia.Widget.extend({
initialize: function(options) {
var instance = this;
instance._super.apply(instance, arguments);
},
foo: function() {
alert("I am a brand new method.")
},
bar: function() {
alert("I am another brand new method.")
}
});
// creating a new instance of Nokia.SampleWidget that inherits from Nokia.Widget
var SampleWidget = new Nokia.SampleWidget({
option1: 1,
option2: 2
});
SampleWidget.foo(); // foo
SampleWidget.bar(); // bar
Not Applicable for this component.
No related wiki articles found