You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I want to reuse the blueprints/Tab component of the cms package inside my own component like this:
<template><tabs.../></template><script>
import Tabs from '???'
</script>
Since (afaik) the tab component is not exported to the vue instance (looked at bootstrap/components.js) it is not globaly available.
Importing it directly through the vendor package (import Tabs from '.../vendor/statamic/cms/resources/js/components/blueprints/Tabs.vue') doesnt work since it cant resolve dependencies (like @shopify/draggable , uniqid, ...).
How is it possible to import the component and reuse it in my own ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I want to reuse the blueprints/Tab component of the cms package inside my own component like this:
Since (afaik) the tab component is not exported to the vue instance (looked at bootstrap/components.js) it is not globaly available.
Importing it directly through the vendor package (
import Tabs from '.../vendor/statamic/cms/resources/js/components/blueprints/Tabs.vue'
) doesnt work since it cant resolve dependencies (like@shopify/draggable
,uniqid
, ...).How is it possible to import the component and reuse it in my own ?
Beta Was this translation helpful? Give feedback.
All reactions