Huge Collections of Software Manuals and Knowledgebase

GreatManuals.com
Huge Collections of Software Manuals and Knowledgebase

 
Home Contact Us Request to publish your help manuals Request to remove your help manuals
Introduction
» Likno Drop-Down Menu Trees
» About Likno Software
User Interface
» Main Window Layout
» Keyboard Shortcuts
» Commands
» Command Structure
» Theme
» Tools
» Project Properties
» Customize
» Properties
Manage Trees Programmatically
» API For Programmable Trees
» API Reference
» Objects Properties
» Functions
» LiknoTreeRoot Properties
» LiknoTreeRoot Functions
» Themes
Examples
» Building Calendar Tree
» Stock Market Portfolio
» Shopping Cart Management
FAQ & Tips
» Frequently Asked Questions
» Troubleshooting
 

Functions

These are the functions supported by the LiknoTreeElement object.Note that all these functions are available to the LiknoTreeRoot object too, since it is inherited from LiknoTreeElement.

freeware data recovery best software help Free keystroke recorder
keystroke logger system usb monitor free windows repair
free recovery free undelete business solution

The return type of each function, if any, is indicated underneath each function name. If the returned variable is restricted to specific values, those will be indicated in brackets next to the return type.

addLeafWithParams
LiknoTreeElement

Parameters

#

name

type

description

1

content

string

The content of the node. It can be either plain text or html code including complex formatting and/or images. In the latter case, care must be taken that the resulting html code does not break the tree code.

2

link

string

The URL which will load when the user clicks on this node.

3

target

string

The name of the frame in which the preceding URL will be loaded.

4

vsbl

boolean

Specifies whether this node will be initially visible or not. A parent node with all its children invisible will be shown as collapsed.

5

icon

string

The file path to the image file for a custom icon to be used by this node. If not specified, the default icon(s) for this tree will be used.

Adds a new node to the tree, as a child of the node which is calling it, and returns this new node. The new node will be added at the end of the list of children of its parent. The following example will build the tree shown below (in the first image, the tree is shown in its initial state, while in the second image, the tree is shown fully expanded):

Example:

treeD = new LiknoTreeRoot("treeD", "example", 0, 0, 0, 0, 16, true, "background-color:white; border:1px solid #330099; padding:4px;", "gif");
treeD.setImagesDir("images/ldmt/16x16/tree/");
treeD.addClass("de", "font-family:Times New Roman; font-size:12px; color:black; background-color:transparent; text-decoration:none; font-weight:normal; padding-left:4px; padding-right:4px;");
treeD.addClass("mo", "font-family:Times New Roman; font-size:12px; text-decoration:underline; color:#669900; padding-left:4px; padding-right:4px;");
treeD.addClass("se", "font-family:Times New Roman; font-size:12px; color:white; background-color:#CC6600; padding-left:4px; padding-right:4px;");
t2_a = treeD.addLeafWithParams("Fruit", "", "", true, "");
t2_a0 = t2_a.addLeafWithParams("Apples", "", "", false, "");
t2_a1 = t2_a.addLeafWithParams("Melons <img src='images/melons.gif' style='border:0; vertical-align:top;'>", "", "", false, "");
t2_a2 = t2_a.addLeafWithParams("Pears", "", "", false, "");
t2_a3 = t2_a.addLeafWithParams("Berries", "", "", false, "");
t2_a4 = t2_a.addLeafWithParams("Specialty Fruit", "", "", false, "");
t2_a40 = t2_a4.addLeafWithParams("<img src='images/lychee.jpg' style='border:0; vertical-align:top;'>", "", "", false, "");
t2_a41 = t2_a4.addLeafWithParams("Passion Fruit", "", "", false, "");
t2_a42 = t2_a4.addLeafWithParams("Pomegranate", "", "", false, "");
t2_a43 = t2_a4.addLeafWithParams("Tamarillo", "", "", false, "");
t2_a44 = t2_a4.addLeafWithParams("Quince", "", "", false, "");
t2_a45 = t2_a4.addLeafWithParams("Black Sapote", "", "", false, "");
t2_a5 = t2_a.addLeafWithParams("Citrus", "", "", false, "");
t2_a6 = t2_a.addLeafWithParams("Tropical Fruit", "", "", false, "");
t2_a60 = t2_a6.addLeafWithParams("Bananas <img src='images/bananas.gif' style='border:0; vertical-align:top;'>", "", "", false, "");
t2_a61 = t2_a6.addLeafWithParams("Guava", "", "", false, "");
t2_a62 = t2_a6.addLeafWithParams("Coconut", "", "", false, "");
t2_a63 = t2_a6.addLeafWithParams("Pineapple", "", "", false, "");
t2_a64 = t2_a6.addLeafWithParams("Papaya", "", "", false, "");
t2_a65 = t2_a6.addLeafWithParams("<img src='images/kiwi.jpg' style='border:0; vertical-align:top;'>", "", "", false, "");
t2_a7 = t2_a.addLeafWithParams("Cherries", "", "", false, "");
t2_b = treeD.addLeafWithParams("Vegetables", "", "", true, "");
t2_b0 = t2_b.addLeafWithParams("Cooking vegetables", "", "", true, "");
t2_b1 = t2_b.addLeafWithParams("Salad vegetables", "", "", true, "");
t2_b2 = t2_b.addLeafWithParams("Specialty vegetables", "", "", true, "");
t2_b00 = t2_b0.addLeafWithParams("Mushrooms", "", "", false, "");
t2_b01 = t2_b0.addLeafWithParams("Peppers", "", "", false, "");
t2_b02 = t2_b0.addLeafWithParams("Cabbage", "", "", false, "");
t2_b03 = t2_b0.addLeafWithParams("Carrots, Turnips & Other Roots", "", "", false, "");
t2_b04 = t2_b0.addLeafWithParams("Onions, Leeks & Garlic", "", "", false, "");
t2_b05 = t2_b0.addLeafWithParams("Potatoes", "", "", false, "");
t2_b06 = t2_b0.addLeafWithParams("Squash", "", "", false, "");
t2_b07 = t2_b0.addLeafWithParams("Broccoli & Cauliflower", "", "", false, "");
t2_b08 = t2_b0.addLeafWithParams("Asparagus, Artichokes & Corn", "", "", false, "");
t2_b09 = t2_b0.addLeafWithParams("Celery, Rhubarb & Bok Choy", "", "", false, "");
t2_b10 = t2_b0.addLeafWithParams("Mustard, Collards & Other Greens", "", "", false, "");
t2_b11 = t2_b0.addLeafWithParams("Peas, Beans & Eggplant", "", "", false, "");
t2_b010 = t2_b01.addLeafWithParams("Jalapeno", "", "", false, "");
t2_b011 = t2_b01.addLeafWithParams("Serrano", "", "", false, "");
t2_b012 = t2_b01.addLeafWithParams("Red Bell", "", "", false, "");
t2_b013 = t2_b01.addLeafWithParams("Sweet Bell (various colors)", "", "", false, "");
t2_b014 = t2_b01.addLeafWithParams("Aneheim", "", "", false, "");
t2_b015 = t2_b01.addLeafWithParams("Green Bell", "", "", false, "");
t2_b016 = t2_b01.addLeafWithParams("Hot Yellow", "", "", false, "");
t2_b10 = t2_b1.addLeafWithParams("Tomatoes <img src='images/tomatoes.gif' style='border:0; vertical-align:top;'>", "", "", true, "");
t2_b11 = t2_b1.addLeafWithParams("Onions & Garlic", "", "", true, "");
t2_b12 = t2_b1.addLeafWithParams("Peppers", "", "", true, "");
t2_b13 = t2_b1.addLeafWithParams("Cucumbers", "", "", true, "");
t2_b14 = t2_b1.addLeafWithParams("Sprouts", "", "", true, "");
t2_b15 = t2_b1.addLeafWithParams("Carrots, Radishes & Other Roots", "", "", true, "");
t2_b16 = t2_b1.addLeafWithParams("Avocados", "", "", true, "");
t2_b17 = t2_b1.addLeafWithParams("Mushrooms <img src='images/mushrooms.gif' style='border:0; vertical-align:top;'>", "", "", true, "");
t2_b18 = t2_b1.addLeafWithParams("Celery & Bok Choy", "", "", true, "");
t2_b19 = t2_b1.addLeafWithParams("Lettuce & Spinach", "", "", true, "");
treeD.drawTree();

 Menu Menu

»

Home | Contact Us | Request to publish your help manuals | Request to remove your help manuals