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

Customise header and time #3

Open
robertmylne opened this issue Jun 20, 2019 · 3 comments
Open

Customise header and time #3

robertmylne opened this issue Jun 20, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@robertmylne
Copy link

How can we customise the title tags and time tags?

They are displayed like this in the bootstrap documentation.

<strong class="mr-auto">Bootstrap</strong>
<small class="text-muted">11 mins ago</small>
@robertmylne
Copy link
Author

Maybe something like the below and instead of the switch statement you could make them props?

<strong class="mr-auto">{{ getHeaderName(item.type) }}</strong>

      getHeaderName(type) {
        switch (type) {
            case 'success': {
                return 'Success'
            }
            case 'danger': {
                return 'Error'
            }
        }
      },

@rakk7
Copy link
Owner

rakk7 commented Aug 25, 2019

When I have the time this weekend, I will have a look on this.

@rakk7 rakk7 added the enhancement New feature or request label Aug 25, 2019
@nj167252
Copy link

Sorry how do I use the enhancement label and what does is do? I want to be able to add a title to my toast. And is it possible to have a default styles toast?

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

No branches or pull requests

3 participants