Login   Register  
PHP Classes
elePHPant
Icontem

File: test_tree.xul

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Herman Veluwenkamp  >  HV Array To RDF Collection  >  test_tree.xul  >  Download  
File: test_tree.xul
Role: Auxiliary data
Content type: text/plain
Description: Example of XUL tree template
Class: HV Array To RDF Collection
Generate XML RDF documents from associative arrays
Author: By
Last change: Updated to include changes.
Date: 8 years ago
Size: 1,063 bytes
 

Contents

Class file image Download
<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">


<vbox flex="1" style="overflow: auto;">

<tree rows="10" 
      datasources="test_rdf.php" flex="1" id="ds_records" 
      onclick="this.builder.refresh();"
      sortResource="urn:record#field_id" sortDirection="ascending"
      ref="urn:record:all" 
      containment="urn:record#list">
      <!-- need to help mozilla template engine by identifying container element -->
                
  <treecols>
    <treecol label="Name" primary="true" flex="1"/>
    <splitter class="tree-splitter"/>
    <treecol label="Amount" flex="1"/> 
  </treecols>
  <template>
    <rule>
      <treechildren>
        <treeitem uri="rdf:*" open="true">
          <treerow>
            <treecell label="rdf:urn:record#field_name"/>
            <treecell label="rdf:urn:record#field_amount"/>
          </treerow>
        </treeitem> 
      </treechildren>
    </rule>
  </template>
</tree>  

</vbox>

</window>