Skip to content

Commit

Permalink
chore: v2.0.0 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mathuo committed Nov 3, 2024
1 parent 8a05aed commit 1a9ee8c
Show file tree
Hide file tree
Showing 3 changed files with 297 additions and 141 deletions.
32 changes: 32 additions & 0 deletions packages/docs/blog/2024-11-03-dockview-2.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
slug: dockview-2.0.0-release
title: Dockview 2.0.0
tags: [release]
---

# Release Notes

This major version bump is due to breaking changes related to classnames.

Please reference docs @ [dockview.dev](https://dockview.dev).

## 🚀 Features

- Add panel within group at specific index [#751](https://github.com/mathuo/dockview/pull/751)

## 🛠 Miscs

- Set drag event dataTransfer object to empty string [#738](https://github.com/mathuo/dockview/pull/738)
- General code cleanup / housekeeping [#740](https://github.com/mathuo/dockview/pull/740) [#746](https://github.com/mathuo/dockview/pull/746)
- Bug: Popout window initial sizing [#737](https://github.com/mathuo/dockview/pull/737) [#727](https://github.com/mathuo/dockview/pull/727)
- Bug: Close popout window on unload (refresh) [#731](https://github.com/mathuo/dockview/pull/731)
- Bug: Preserve Vue3 inject/provide context [#673](https://github.com/mathuo/dockview/pull/673)
- Bug: Fix Contraints [#744](https://github.com/mathuo/dockview/pull/744)
- Bug: Fix popout window issues [#748](https://github.com/mathuo/dockview/pull/748)

## 🔥 Breaking changes

- Prefix all classnames with `-dv-*` [#688](https://github.com/mathuo/dockview/pull/688)
- Remove depreciated methods [#742](https://github.com/mathuo/dockview/pull/742)


22 changes: 21 additions & 1 deletion packages/docs/docs/core/panels/add.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ api.addPanel({
direction: 'above'
}
});

api.addPanel({
id: 'panel_4',
component: 'default',
position: {
referencePanel: panel2,
index: 2 // optionally specify which index to add the panel at
}
});
```

#### Relative to another Group
Expand All @@ -129,14 +138,25 @@ const panel2: IDockviewPanel = api.addPanel({
}
});

const panel = api.addPanel({


api.addPanel({
id: 'panel_2',
component: 'default',
position: {
referenceGroup: panel2.group,
direction: 'left'
}
});

api.addPanel({
id: 'panel_3',
component: 'default',
position: {
referenceGroup: panel2.group,
index: 2 // optionally specify which index to add the panel at
}
});
```

#### Relative to the container
Expand Down
Loading

0 comments on commit 1a9ee8c

Please sign in to comment.