You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for developing this - it is really helpful. I found an issue that is not a show-stopper, but I would like to correct:
There does not appear to be a way to pass in more than 1 class into a custom share button. For example here is a custom method I've written:
getTwitterButton(): ShareButton {
let twitterButton = new ShareButton(
ShareProvider.TWITTER,
" Tweet",
'btn btn-primary'
);
return twitterButton;
}
This throws an error:
inline template:17:4 caused by: Failed to execute 'add' on 'DOMTokenList': The token provided ('btn btn-primary') contains HTML space characters, which are not valid in tokens
if I just put 'btn' it works fine.
How do I pass in multiple classes?
The text was updated successfully, but these errors were encountered:
Thanks for developing this - it is really helpful. I found an issue that is not a show-stopper, but I would like to correct:
There does not appear to be a way to pass in more than 1 class into a custom share button. For example here is a custom method I've written:
getTwitterButton(): ShareButton {
let twitterButton = new ShareButton(
ShareProvider.TWITTER,
" Tweet",
'btn btn-primary'
);
return twitterButton;
}
This throws an error:
inline template:17:4 caused by: Failed to execute 'add' on 'DOMTokenList': The token provided ('btn btn-primary') contains HTML space characters, which are not valid in tokens
if I just put 'btn' it works fine.
How do I pass in multiple classes?
The text was updated successfully, but these errors were encountered: