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

Support opening spotlight search results in new tab. #35

Closed
wants to merge 1 commit into from
Closed

Support opening spotlight search results in new tab. #35

wants to merge 1 commit into from

Conversation

Ayaan2907
Copy link

@Ayaan2907 Ayaan2907 commented Oct 25, 2022

Resolved #25 .
In this particular use case of mantine/spotlight actions, we do not have icons to display. So we can specify a button to open that result in new page as a value function to the icon property of the spotlight actions.
The function uses window methods to open new tab with the base url + item.slug.

To make opening it in external page optional, the function is set as icon instead of calling it onTrigger.

@netlify
Copy link

netlify bot commented Oct 25, 2022

Deploy Preview for zesty-dragon-10e479 ready!

Name Link
🔨 Latest commit e3fbe83
🔍 Latest deploy log https://app.netlify.com/sites/zesty-dragon-10e479/deploys/6357e375e3824300098efad9
😎 Deploy Preview https://deploy-preview-35--zesty-dragon-10e479.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@Ayaan2907 Ayaan2907 closed this by deleting the head repository Feb 15, 2023
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

Successfully merging this pull request may close these issues.

Support opening search results in new tab in spotlight search
1 participant