Do you have an extension that others would find useful?
To submit your extension to the Fuel UX Community, first publish a repository on GitHub with complete and well written instructions. Instructions should be a clear and detailed explanation of the purpose and usage of the extension. Please show code, when applicable, that is clear and easy to read and copy as a whole. Bonus points for screen shots in your README.md! If you choose not to support your extension, state this in your description.
Please fork the Fuel UX repository and submit a pull request with a modified extensions.html in the gh-pages branch.
Fuel UX controls are also jQuery plugins, so you can $.extend() them, too.
{% highlight js %}
(function (factory) {
if (typeof define === 'function' && define.amd) {
// if AMD loader is available, register as an anonymous module.
define(['jquery', 'fuelux/datepicker'], factory);
} else {
// OR use browser globals if AMD is not present
factory(jQuery);
}
}(function ($) {
// -- END UMD WRAPPER PREFACE --
// -- BEGIN MODULE CODE HERE --
// change something with the data grid control
$.fn.extend($.fn.datepicker.Constructor.prototype, {
// adding methods
awesomeNewMethod: function () { },
// overriding methods
someExistingMethod: function () { }
});
// rinse and repeat
// -- BEGIN UMD WRAPPER AFTERWORD --
}));
// -- END UMD WRAPPER AFTERWORD --
{% endhighlight %}
Thank you for your contribution! We look forward to your creative ideas.