-
Notifications
You must be signed in to change notification settings - Fork 88
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
how to change label_btn text ? #65
Comments
You can override the template by creating your own component that extends the angular2csv component. Original template: My implementation is as follows:
Then in your template, rather than use
You can instead use:
and whatever is between the app-angular2csv tags will be replaced with your content. *** EDIT *** The rest of the usage is as per angular2-csv documentation and standard @angular |
Thanks for the work around ! |
Hi, |
I hoped to fork this and add it to the options as labelText and fiddling with the code but to no avail. As it's all "built", compiled, minified etc. and I don't have access to the original files I'm unable to do much with it. Hopefully the original author will be able to implement in the next release. |
how to use this code in exists components |
Thanks @StevenFewster it works for me but it increases product size when creating a new component for it. |
You can also achieve this with a little CSS hackery Given markup in my.component.html
The following CSS in my.component.css will change the button text
Could probably do this in global CSS files too, assuming you want to use the same label on every angular2csv button. Hope that helps. |
This is not the most beautiful solution but you can also do:
|
No description provided.
The text was updated successfully, but these errors were encountered: