mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 18:14:07 +03:00
chore: add docs
This commit is contained in:
parent
bfd703d2da
commit
1504ade0e2
|
@ -244,6 +244,7 @@ You can use all of the following options with standalone version on <redoc> tag
|
||||||
* `disableSearch` - disable search indexing and search box
|
* `disableSearch` - disable search indexing and search box
|
||||||
* `onlyRequiredInSamples` - shows only required fields in request samples.
|
* `onlyRequiredInSamples` - shows only required fields in request samples.
|
||||||
* `jsonSampleExpandLevel` - set the default expand level for JSON payload samples (responses and request body). Special value 'all' expands all levels. The default value is `2`.
|
* `jsonSampleExpandLevel` - set the default expand level for JSON payload samples (responses and request body). Special value 'all' expands all levels. The default value is `2`.
|
||||||
|
* `menuToggle` - if true clicking second time on expanded menu item will collapse it, default `false`
|
||||||
* `theme` - ReDoc theme. Not documented yet. For details check source code: [theme.ts](https://github.com/Redocly/redoc/blob/master/src/theme.ts)
|
* `theme` - ReDoc theme. Not documented yet. For details check source code: [theme.ts](https://github.com/Redocly/redoc/blob/master/src/theme.ts)
|
||||||
|
|
||||||
## Advanced usage of standalone version
|
## Advanced usage of standalone version
|
||||||
|
|
|
@ -9,10 +9,7 @@ import { PerfectScrollbarWrap } from '../../common-elements/perfect-scrollbar';
|
||||||
import { RedocAttribution } from './styled.elements';
|
import { RedocAttribution } from './styled.elements';
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
export class SideMenu extends React.Component<{
|
export class SideMenu extends React.Component<{ menu: MenuStore; className?: string }> {
|
||||||
menu: MenuStore;
|
|
||||||
className?: string;
|
|
||||||
}> {
|
|
||||||
static contextType = OptionsContext;
|
static contextType = OptionsContext;
|
||||||
private _updateScroll?: () => void;
|
private _updateScroll?: () => void;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user