Comments (9)
Yupp, you get the clicked button, but only after the window gets closed
<share-buttons (popUpClosed)="yourFun($event)">
yourFun(clickedButton: ShareProvider){
}
I'm not sure what you are trying to accomplish! if this doesn't work for you, check the advanced usage section for adding single tweet button and configure the description
input the way you want
from ngx-sharebuttons.
Hi @MurhafSousli thanks for your help. The popUpClosed event is triggered after sharing. I need an event before the popup opens, so I can change the description before it´s displayed in the sharing dialog that is an event when the share icon button is clicked. Is this possible?
Thanks!
from ngx-sharebuttons.
@doorman02 Currently this is not possible out of the box, but you can still do it the way I stated above ☝️
from ngx-sharebuttons.
Do you mean I can somehow change the description before the popup opens?
It would be nice if it would be possible out of the box because different sharing services have different text limits and such. Thanks again for this great plugin :)
from ngx-sharebuttons.
@doorman02 Now I got it, I think we can fix the tweet's text limit issue, but it's not possible to filter the description
before window opens from the ShareButtons component, and it would be too specific if you made this possible for the inner component ShareButton
from ngx-sharebuttons.
Thanks @MurhafSousli for your help. To further explain my use case. I have some important information in the title field and then more information in the description field. This fits well for Facebook sharing dialog. But Twitter doesn´t use the title field, in that case I would like to move the important information from the title to the description field. I am sure there will be similar use cases for the other sharing services. That´s why I was wondering if it was possible to modify the title, description fields on the fly depending on the pressed ShareButton before the sharing dialog opens.
from ngx-sharebuttons.
@doorman02 Have you checked the advanced usage I told you about?
You will be able to that if you added the share button individually, don't use <share-buttons>
, instead use <share-button [description]="customTweetText">
Please read the guide to learn how to initialize a single share button.
If you have got an out of the box solution, please submit your PR and we will review it
from ngx-sharebuttons.
I see, ok thanks I will have a better look :)
from ngx-sharebuttons.
:) I'm closing this one now, and opening the tweet text limit issue in separate thread
from ngx-sharebuttons.
Related Issues (20)
- skype button
- instagram button
- gmail button is not available HOT 1
- When click on Messenger and Viber nothing happens, link doesn't open HOT 1
- setting meta tags doesn't seem to matter? HOT 4
- Share via Mastodon HOT 1
- how to add role to given tag HOT 2
- Opened output not firing HOT 3
- Whatsapp redirection to 'api/web .whatsapp.com' controlled manually HOT 1
- :bug: v12.0.0 says tumblr and reddit are no longer available to use with shareButton directive
- can we open shared details in pop up instead of new tab ? HOT 2
- i am geting error with Angualr version 15 HOT 6
- How to use share buttons vertically? HOT 1
- share-buttons inputs don't work within square brackets. HOT 1
- add or replace twitter option for X HOT 5
- Unable to share image HOT 1
- Can't install; error with cdk version HOT 1
- Required Old Twitter Logo Update | 'X' HOT 2
- Updating to Angular 17 HOT 4
- share my articles in linkedin with preview image HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-sharebuttons.