Knowls

From WeBWorK
(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
  
 
<p style="background-color:#f9f9f9;border:black solid 1px;padding:3px;">
 
<p style="background-color:#f9f9f9;border:black solid 1px;padding:3px;">
This PG code shows how to apply a javascript-enabled collection of drag and drop statements.
+
This code fragment shows how to apply a javascript-enabled popup bit of knowledge (a knowl).
 
</p>
 
</p>
  

Revision as of 11:37, 29 April 2014

Knowls


This code fragment shows how to apply a javascript-enabled popup bit of knowledge (a knowl).

Problem Techniques Index

PG problem file Explanation

$PAR
Here is a knowl
\{ knowlLink("click me", value=>'This is the inside of a knowl.  If you click again, I will go away') \}
$PAR


Instead of specifying a value, you can specify the url of a file with html in it, and that html will appear in the knowl. Then you can use one file in multiple places.

Templates by Subject Area


Problem Techniques Index

follow us