Skip to content

Commit

Permalink
docs(angular-query-devtools): button position relative (#6911)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoud-dv authored Feb 16, 2024
1 parent e83a823 commit 65a5540
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion docs/framework/angular/devtools.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ import { Component } from '@angular/core';

- `initialIsOpen: Boolean`
- Set this `true` if you want the dev tools to default to being open
- `buttonPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right"`
- `buttonPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "relative"`
- Defaults to `bottom-right`
- The position of the TanStack logo to open and close the devtools panel
- If `relative`, the button is placed in the location that you render the devtools.
- `position?: "top" | "bottom" | "left" | "right"`
- Defaults to `bottom`
- The position of the Angular Query devtools panel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,22 @@ export class AngularQueryDevtools

/**
* The position of the TanStack logo to open and close the devtools panel.
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
* Defaults to 'bottom-right'.
* `top-left` | `top-right` | `bottom-left` | `bottom-right` | `relative`
* Defaults to `bottom-right`.
* If `relative`, the button is placed in the location that you render the devtools.
* @example
* <angular-query-devtools buttonPosition="top-right" />
*/
@Input() buttonPosition?: queryDevtools.DevtoolsButtonPosition

/**
* The position of the Angular Query devtools panel.
* 'top' | 'bottom' | 'left' | 'right'
* Defaults to 'bottom'.
* `top` | `bottom` | `left` | `right`
* Defaults to `bottom`.
* @example
* <angular-query-devtools position="bottom" />
*/
@Input({ alias: 'position' }) position?: queryDevtools.DevtoolsPosition
@Input() position?: queryDevtools.DevtoolsPosition

/**
* Custom instance of QueryClient
Expand Down

0 comments on commit 65a5540

Please sign in to comment.