Difference between revisions of "Command/tooltip"

From ConTeXt wiki
(Create reference page)
 
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=tooltip
 
|name=tooltip
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>tooltip</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 31: Line 32:
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
+
 
 +
Here is a typical example (this works only with PDF viewers which are JavaScript compatible, such as Adobe Acrobat):
 +
 
 +
<texcode>
 +
\setuppapersize[S6][S6]
 +
\setupinteraction[state=start]
 +
\setupcolors[state=start]
 +
 
 +
\starttext
 +
Here is an example: by saying
 +
\type{\tooltip[left]{Example}{Is it nice}}, we get
 +
\blank
 +
\midaligned{\tooltip[bottom]{Example}{Isn't it nice?}}
 +
\blank
 +
 
 +
This file when opened in Adobe Acrobat will show the tooltip "Isn't it nice?" when one hovers over the word "Example".
 +
 
 +
\blank
 +
\midaligned{\tooltip[bottom]{an example}{Isn't it nice?}  of tooltip on the bottom}
 +
\blank
 +
\midaligned{an example of tooltip on the \tooltip[right]{right}{Isn't it nice?}}
 +
\blank
 +
\midaligned{\tooltip[left]{an}{Isn't it nice?}  example of tooltip on the left}
 +
 
 +
\stoptext
 +
 
 +
</texcode>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
<!-- something like {{cmd|goto}} -->
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Reference/en|tooltip]]
+
[[Category:Command/Interaction|tooltip]]

Latest revision as of 16:14, 11 November 2019

\tooltip

Syntax (autogenerated)

\tooltip[...=...,...]{...}{...}
...=...,...inherits from \setuptooltip
{...}text
{...}text


\tooltip[...=...,...]{...}{...}
instance of \tooltip


\tooltip[...]{...}{...}
[...]left middle right
{...}text
{...}text


\tooltip[...]{...}{...}
instance of \tooltip


Syntax

\tooltip[...]{...}{...}
[...] left right middle
{...} text
{...} text


Description

Example

Here is a typical example (this works only with PDF viewers which are JavaScript compatible, such as Adobe Acrobat):

\setuppapersize[S6][S6]
\setupinteraction[state=start]
\setupcolors[state=start]

\starttext
Here is an example: by saying
\type{\tooltip[left]{Example}{Is it nice}}, we get 
\blank
\midaligned{\tooltip[bottom]{Example}{Isn't it nice?}}
\blank

This file when opened in Adobe Acrobat will show the tooltip "Isn't it nice?" when one hovers over the word "Example".

\blank
\midaligned{\tooltip[bottom]{an example}{Isn't it nice?}  of tooltip on the bottom}
\blank
\midaligned{an example of tooltip on the \tooltip[right]{right}{Isn't it nice?}}
\blank
\midaligned{\tooltip[left]{an}{Isn't it nice?}  example of tooltip on the left}

\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: