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

Ribbon with @click option #1

Open
carromeu opened this issue May 20, 2020 · 1 comment
Open

Ribbon with @click option #1

carromeu opened this issue May 20, 2020 · 1 comment

Comments

@carromeu
Copy link

First, congrats for this component! Its true useful.

I want use it as a ribbon to "BETA version" alert. I need to make a fork or has any exploit to make its possible?

@ubaldop
Copy link
Owner

ubaldop commented May 20, 2020

Hi @carromeu thanks for using it 😃

Currently the component does only support the url property, that builds an anchor tag with href, for example:

<Ribbon 
	text='Hello World' 	
	url='https://github.com/P3trur0/vue-ribbon'
	fixed />

If the url sounds fine to you, it might work as a clickable ribbon.

Otherwise you have to bind the onclick event manually. Please, consider to open a PR in case you'll introduce this improvement!

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

2 participants