app/assets/javascripts/pageflow/ui/views/inputs/url_input_view.js in pageflow-0.11.4 vs app/assets/javascripts/pageflow/ui/views/inputs/url_input_view.js in pageflow-12.0.0.rc1
- old
+ new
@@ -1,6 +1,24 @@
-pageflow.UrlInputView = Backbone.Marionette.Layout.extend({
+/**
+ * Input view for URLs.
+ *
+ * @param {string[]} options.supportedHosts
+ * List of allowed url prefixes.
+ *
+ * @param {boolean} [options.required=false]
+ * Display an error if the url is blank.
+ *
+ * @param {boolean} [options.permitHttps=false]
+ * Allow urls with https protocol.
+ *
+ * @see {@link module:pageflow/ui.pageflow.inputView pageflow.inputView} for further options
+ * @class
+ * @memberof module:pageflow/ui
+ */
+pageflow.UrlInputView = Backbone.Marionette.Layout.extend(
+ /** @lends module:pageflow/ui.pageflow.UrlInputView# */{
+
mixins: [pageflow.inputView],
template: 'pageflow/ui/templates/inputs/url_input',
ui: {
@@ -147,6 +165,6 @@
function resetValidationError(message) {
view.$el.removeClass('invalid');
view.ui.validation.hide();
}
}
-});
\ No newline at end of file
+});