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

Slot content #3

Open
aldozumaran opened this issue Jun 23, 2017 · 0 comments
Open

Slot content #3

aldozumaran opened this issue Jun 23, 2017 · 0 comments

Comments

@aldozumaran
Copy link

Hi, is it possible to pass a content value from slot name reference such as footer slot?
ex.

My component

<template>
    <div>
        <base-card :icon="'angle-down'" :title="'Github'">
            //Slot
            <slot name="content" slot="content"></slot>
            // or Html
            <div slot="content">
                <div>
                    <h1>My custom Card Content</h1>
                    <p>Hello world</p>
                </div>
            </div>
            <card-footer-item slot="footer" :href="'https://github.com'">
                <span class="icon is-small">
                    <i aria-hidden="true" class="fa fa-refresh"></i>
                </span>
                &nbsp;&nbsp; Refresh token
            </card-footer-item>
        </base-card>
    </div>
</template>

<script>
    import {BaseCard, CardFooterItem} from 'vue-bulma-card';
    export default {
        components: {
            BaseCard,
            CardFooterItem
        }
    }
</script>

<test>
    <div slot="content">
        <div>
            <h1>My custom Card Content</h1>
            <p>Hello world</p>
        </div>
    </div>
</test>
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

1 participant