Skip to content
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

Is there a way to add different views to orderableDocumentListDeskItem? #57

Open
procrates opened this issue Mar 2, 2023 · 1 comment

Comments

@procrates
Copy link

Is there a way to add multiple views like this?

S.documentTypeList('work')
                    .title('Arbeider')
                    .child((documentId: any) =>
                      S.document()
                        .documentId(documentId)
                        .schemaType('work')
                        **.views([
                          S.view.form(),
                          S.view.component(iFrame).title('Preview')
                        ])**
                    )

Thanks!

@SimeonGriggs
Copy link
Collaborator

I'd recommend using getDefaultDocumentNode to customise view panes:
https://www.sanity.io/docs/structure-builder-reference#97e44ce262c9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants