-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Missing component: Tooltip #12
Comments
great. it is not yet available. please go ahead and implement. currently components support title attribute which can be used to get native Tooltip. we would need to implement the way implemented in material-ui https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Tooltip/Tooltip.js I guess the Tooltip component depends on one more important component https://github.com/mui-org/material-ui/tree/master/packages/material-ui/src/Popper. so we would need to implement this also. And finally we would like to create demos and documentation as here. https://material-ui.com/components/tooltips/ I am glad that you are interest to contribute. thanks. please proceed. |
@skclusive Hi, I'm currently working on this, but I have a problem. I'm not a JSInterop guru and I can't figure out how you include JS files without manually including them in _Host.cshtml. Any advice would be appreciated |
@esso23 great. you can bundle popper.js and custom scripts and componentize the script content as component. ex: TooltipHelpersScript.cs public class TooltipHelpersScript : Scripted
{
public TooltipHelpersScript(): base("TooltipHelpersScript")
{
}
protected override string GetScript()
{
return
@"!function(){console.log('popper.js and custom introp minified bundled code')}();";
}
} then we could all the Tooltip related script component here. MaterialScripts.razor <ScriptHelpersScript />
<DomHelpersScript />
<TooltipHelpersScript /> this way it would be included by default. for standalone installation, we could document the 'TooltipHelpersScript' import. let me know, if you require more details. excited and looking forward. |
Do you have some build tool to copy the script to the .cs file? |
no. that would be good. but i used to manually copy. |
Can't find the Tooltip component. I wanna make sure it's not just me being unable to find it. If it's not the case I would try implementing it.
The text was updated successfully, but these errors were encountered: