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

make use of slot for item title #13

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

p418
Copy link

@p418 p418 commented Sep 12, 2017

I've added <slot name="title"> for collapse-item component.
This allows one to customize header content with fallback to original title prop.

Usage:

<collapse-item :title="myTitle" selected>
    <div slot="title" >
      <div class="title is-5">{{myTitle}}</div>

      <div class="field has-addons">
        <button class="button"><i class="fa fa-pencil" aria-hidden="true"></i></button>
        <button class="button is-danger is-outlined"><i class="fa fa-trash" aria-hidden="true"></i></button>
      </div>
    </div>
...
...
</collapse-item>

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.

1 participant