-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(database): support row-level selection #2561
Conversation
Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…nto 0512-db-selection
…nto 0512-db-selection
@@ -447,6 +455,18 @@ export class DefaultPageBlockComponent | |||
slots.embedEditingStateUpdated.on(embedEditingState => { | |||
this._embedEditingState = embedEditingState; | |||
}); | |||
slots.databaseTableUpdated.on(state => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this slot into database model?
@@ -539,6 +539,24 @@ export function createDragHandle(pageBlock: DefaultPageBlockComponent) { | |||
pageBlock.selection.state.type = dragging ? 'block:drag' : 'block'; | |||
}, | |||
setSelectedBlock(modelState: EditingState | null) { | |||
if (modelState) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of handle database selection here, maybe we can move this into database service.
I really like this idea |
close: #2468
alo close: #2467
2023-05-15.10.09.45.mov