UNPKG

alpaca

Version:

Alpaca provides the easiest and fastest way to generate interactive forms for the web and mobile devices. It runs simply as HTML5 or more elaborately using Bootstrap, jQuery Mobile or jQuery UI. Alpaca uses Handlebars to process JSON schema and provide

40 lines (31 loc) 804 B
(function($) { var Alpaca = $.alpaca; Alpaca.Fields.ImageField = Alpaca.Fields.TextField.extend( /** * @lends Alpaca.Fields.ImageField.prototype */ { /** * @see Alpaca.Fields.TextField#getFieldType */ getFieldType: function() { return "image"; } /* builder_helpers */ , /** * @see Alpaca.Fields.TextField#getTitle */ getTitle: function() { return "Image Field"; }, /** * @see Alpaca.Fields.TextField#getDescription */ getDescription: function() { return "Image Field."; } /* end_builder_helpers */ }); Alpaca.registerFieldClass("image", Alpaca.Fields.ImageField); })(jQuery);