<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;link rel=&quot;stylesheet&quot; title=&quot;Sunburst&quot; href=&quot;http://code.riiv.net/assets/styles/sunburst.css&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.riiv.net/assets/scripts/jquery-1.2.6.pack.js&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://github.com/raid-ox/chain.js/tree/v0.1-stable/build/chain.js?raw=true&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.riiv.net/assets/scripts/jquery-noconflict.js&quot;&gt;&lt;/script&gt;&lt;p style=&quot;background:#eee; padding:4px 2px;&quot;&gt;[[Demos]] &amp;gt; &lt;strong&gt;Linking Multiple Items&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Type e.g. &lt;em&gt;isa&lt;/em&gt; in the textfield. The Umatched/hidden items will be displayed on the second list.&lt;/p&gt;
&lt;div style=&quot;background:#DCE9F4;padding:0.5em;margin-bottom:1em;&quot;&gt;
&lt;div style=&quot;margin-bottom:0.5em; border:1px solid #BBB;&quot;&gt;
&lt;input style=&quot;margin: 0.5em;&quot; type=&quot;text&quot; id=&quot;demo-input-filter&quot; /&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Matched:&lt;/strong&gt;&lt;/p&gt;
&lt;div style=&quot;margin-bottom: 1em;background:white;color:#444;border:1px solid #BBB;&quot; id=&quot;demo-persons&quot;&gt;
		&lt;div style=&quot;background:#DCE9F4;padding: 0.3em;margin:1px;&quot; class=&quot;item&quot;&gt;&lt;span class=&quot;first&quot;&gt;First&lt;/span&gt; &lt;span class=&quot;last&quot;&gt;Last&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Unmatched:&lt;/strong&gt;&lt;/p&gt;
&lt;div style=&quot;margin-top:1em;min-height:20px;background:white;color:#444;border:1px solid #BBB;&quot; id=&quot;demo-filtered&quot;&gt;
		&lt;div style=&quot;background:#DCE9F4;padding: 0.3em;margin:1px;&quot; class=&quot;item&quot;&gt;&lt;span class=&quot;first&quot;&gt;First&lt;/span&gt; &lt;span class=&quot;last&quot;&gt;Last&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;Source&lt;/h3&gt;
&lt;pre&gt;
&lt;code class=&quot;html&quot;&gt;&amp;lt;div&amp;gt;
	&amp;lt;input id=&quot;input-filter&quot; type=&quot;value&quot; /&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div id=&quot;persons&quot;&amp;gt;
	&amp;lt;div class=&quot;item&quot;&amp;gt;&amp;lt;span class=&quot;first&quot;&amp;gt;First&amp;lt;/span&amp;gt; &amp;lt;span class=&quot;last&quot;&amp;gt;Last&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;div id=&quot;filtered&quot;&amp;gt;
	&amp;lt;div class=&quot;item&quot;&amp;gt;&amp;lt;span class=&quot;first&quot;&amp;gt;First&amp;lt;/span&amp;gt; &amp;lt;span class=&quot;last&quot;&amp;gt;Last&amp;lt;/span&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;
&lt;code class=&quot;javascript&quot;&gt;$('#persons')
	.items([
		{first:'Isaac', last:'Newton'},
		{first:'Johannes', last:'Keppler'},
		{first:'Alessandro', last:'Volta'},
		{first:'Blaise', last:'Pascal'},
		{first:'Niels', last:'Bohr'},
		{first:'Albert', last:'Einstein'},
		{first:'Stephen', last:'Hawking'}
	])
	.chain();
			
$('#input-filter').keyup(function(){
	$('#persons').items('filter', $(this).val());
})

// Hidden means, that the hidden collection should be showed. 
// Other options would be 'all' and 'visible'
// Collections are user extensible
$('#filtered').items('link', '#persons', 'hidden').chain();
&lt;/code&gt;&lt;/pre&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.riiv.net/assets/scripts/wiki-demo.js&quot;&gt;&lt;/script&gt;&lt;script type=&quot;text/javascript&quot;&gt;
demo.itemsLinking();
&lt;/script&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.riiv.net/assets/scripts/highlight.js&quot;&gt;&lt;/script&gt;</body>
  <created-at type="datetime">2008-08-16T12:27:41-07:00</created-at>
  <id type="integer">46016</id>
  <permalink>demo-linking-multiple-items</permalink>
  <repository-id type="integer">41994</repository-id>
  <title>Demo: Linking Multiple Items</title>
  <updated-at type="datetime">2008-08-16T12:31:15-07:00</updated-at>
  <user-id type="integer">20353</user-id>
</wiki>
