Skip to content

Commit 831447a

Browse files
committed
Update: Adding properties propagation
1 parent 5ff4d5b commit 831447a

File tree

1 file changed

+52
-3
lines changed

1 file changed

+52
-3
lines changed

api-console.html

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,14 @@ <h1 class="method-title">[[methodName]]</h1>
231231
narrow="[[narrow]]"
232232
no-url-editor="[[noUrlEditor]]"
233233
redirect-uri="[[redirectUri]]"
234-
scroll-target="[[scrollTarget]]"></api-request-panel>
234+
scroll-target="[[scrollTarget]]"
235+
allow-custom="[[allowCustom]]"
236+
allow-disable-params="[[allowDisableParams]]"
237+
allow-hide-optional="[[allowHideOptional]]"
238+
bower-location="[[bowerLocation]]"
239+
base-uri="[[baseUri]]"
240+
no-docs="[[noDocs]]"
241+
events-target="[[eventsTarget]]"></api-request-panel>
235242
</template>
236243
<template is="dom-if" if="[[isDocs]]">
237244
<section class="api-docs">
@@ -257,7 +264,14 @@ <h1 class="method-title">[[methodName]]</h1>
257264
narrow="[[narrow]]"
258265
no-url-editor="[[noUrlEditor]]"
259266
redirect-uri="[[redirectUri]]"
260-
scroll-target="[[scrollTarget]]"></api-request-panel>
267+
scroll-target="[[scrollTarget]]"
268+
allow-custom="[[allowCustom]]"
269+
allow-disable-params="[[allowDisableParams]]"
270+
allow-hide-optional="[[allowHideOptional]]"
271+
bower-location="[[bowerLocation]]"
272+
base-uri="[[baseUri]]"
273+
no-docs="[[noDocs]]"
274+
events-target="[[eventsTarget]]"></api-request-panel>
261275
</div>
262276
</template>
263277
</section>
@@ -639,7 +653,42 @@ <h1 class="method-title">[[methodName]]</h1>
639653
* Set it to a parent element that is a scroll region (has overflow set)
640654
* so the app can handle scrolling properly.
641655
*/
642-
scrollTarget: Object
656+
scrollTarget: Object,
657+
/**
658+
* Option passed to the try it panel.
659+
* When set it allows to disable parameters in an editor (headers,
660+
* query parameters). Disabled parameter won't be used with a test call
661+
* but won't be removed from the UI.
662+
*/
663+
allowDisableParams: Boolean,
664+
/**
665+
* Option passed to the try it panel.
666+
* When set, editors renders "add custom" button that allows to define
667+
* custom parameters next to API spec defined.
668+
*/
669+
allowCustom: Boolean,
670+
/**
671+
* Option passed to the try it panel.
672+
* Enables auto hiding of optional properties (like query parameters
673+
* or headers) and renders a checkbox to render optional items in the
674+
* editor view.
675+
*/
676+
allowHideOptional: Boolean,
677+
/**
678+
* Prohibits rendering documentation (the icon and the
679+
* description) in request editors.
680+
*/
681+
noDocs: Boolean,
682+
/**
683+
* A HTML element used to listen for events on.
684+
* If you use one than more API console elements on single page
685+
* at the same time wrap the console is a HTML element (eg div) and
686+
* set this value to the container so the request panel only listen
687+
* to events dispatched inside the container. Otherwise events dispatched
688+
* by the request panel will be handled by other instances of the console.
689+
* @type {Element}
690+
*/
691+
eventsTarget: Object
643692
};
644693
}
645694

0 commit comments

Comments
 (0)