-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add support for @typedef, @callback and @property #76
Comments
I'm not sure how this should be presented. As the documentation suggests, |
+1 on @jbalsas Would it make sense for us to split |
Hey guys, sorry this has been lingering for a while... I'm looking at the @JeffryBooher, @peterflynn what do you think? |
tool tips aren't the best affordance. can you make them hyperlinks so that clicking on usage of that type takes you to the |
But where should we put and show the |
Also... isn't it possible that we could want to use some |
Can you make a page with just typedefs and callbacks and put them all there as miscellaneous types? |
Sure... but would you want to jump there from the page you are? Wouldn't you prefer to see what it is in the context of the current module? |
Maybe a table at the bottom with all used |
oh i like that -- could make it like a disclosure so you can hide/show it like what we do in brackets for inline editors |
If I understand correctly... you'd like to slide a small table below the typedef when clicking on it with the information? Isn't it pretty much the same as a tooltip? I was thinking of grouping all used defs together at the bottom (more like a glossary) and make the ones in the docs simple links pointing to those anchors. What would you prefer? |
when I think table, i think rows and columns (a grid) that doesn't sound very fluid. You can't copy/paste from a tooltip. They generally disappear and it would be better if this were interactive. Links would probably be better than putting in at the bottom but you could do both I suppose. I would prefer them all on their own page though. Some of our class definitions get pretty large. |
I like the idea of a popover -- in-context like a tooltip, but a little more persistent (e.g. close on click instead of a timeout) and allowing for text selection. Something like the "[1]" / "[2]" / etc. links on this page: http://what-if.xkcd.com/. |
If we do that though, I think it can be a lightweight thing that just shows the definition for the one typedef that was clicked -- no need to put in a whole table that lists all the typedefs. |
@peterflynn, yeah, that's what I meant by "tooltip" 😄 We could use a simple popover. @JeffryBooher would that work for you? |
@jbalsas yeah popover works. I just want to make sure folks can copy/paste :) |
these are pretty tough but here is a simple example of a type:
Here's a radical example (real-use):
The text was updated successfully, but these errors were encountered: