expand collapse buttons

This commit is contained in:
Laurent Lepinay
2015-05-18 15:34:35 +02:00
parent f16c265087
commit dd5fab0b20
11 changed files with 60 additions and 11 deletions

View File

@@ -60,7 +60,11 @@ SwaggerUi.Views.ParameterView = Backbone.View.extend({
this.model.jsonEditor =
/* global JSONEditor */
new JSONEditor($('.editor_holder', $self)[0],
{schema: this.model.schema, startval : this.model.default, ajax:true, disable_properties:true, disable_edit_json:true });
{schema: this.model.schema, startval : this.model.default,
ajax:true,
disable_properties:true,
disable_edit_json:true,
iconlib: 'swagger' });
// This is so that the signature can send back the sample to the json editor
// TODO: SignatureView should expose an event "onSampleClicked" instead
signatureModel.jsonEditor = this.model.jsonEditor;