The DefaultApp.xml file defines the default attributes of Tab, Column and Row. It can decide in what way the end-users can customize tabs, columns and rows. Newly created elements take these as the default metadata.
The best practice is to define the element attributes in the UserPageLayout.xml file explicitly. In this case, the attributes in UserPageLayout.xml file will override those defined in theDefaultApp.xml file.
An alternative way is to leave the default values defined in DefaultApp.xml file.
Here is an example of DefaultApp.xml:
<?xml version="1.0" encoding="UTF-8"?> <DefaultApp xmlns="http://btt.cn.ibm.com/61/Web20" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://btt.cn.ibm.com/61/Web20 ../BTTWeb20/schema/DefaultApp.xsd"> <Tab> <title>New Tab</title> <logo>theme/tablogo/6.gif</logo> <closable>1</closable> <editable>1</editable> <maxColLength>3</maxColLength> </Tab> <Column> <closable>1</closable> <draggable>1</draggable> <maxWidth>10000</maxWidth> <minWidth>100</minWidth> </Column> <Row> <draggable>1</draggable> </Row> </DefaultApp>
Parameters specification for each tag are as follows:
Parameter | Description |
---|---|
title | The title of the tab. It will be the default tab name of a newly created tab. If no title is needed, you can set the value as an empty string. Mandatory |
logo | The URL of the tab logo. If no logo is needed, you can set the value as an empty string. Mandatory |
closable | The attribute to determine whether the tab can be closed by end-users. 0 stands for no while 1 stands for yes. Mandatory |
editable | The attribute to determine whether the tab name and tab logo can be edited. 0 stands for no while 1 stands for yes. Mandatory |
maxColLength | The attribute to determine the maximal columns that its parent tab can have, mandatory positive Integers. |
Parameter | Description |
---|---|
closable | The attribute to determine whether the column can be closed by end-users. 0 stands for no while 1 stands for yes. Mandatory |
draggable | The attribute to determine whether the column can be dragged. 0 stands for no while 1 stands for yes. Mandatory |
maxWidth | The attribute to determine the maximal width of the column. Mandatory |
minWidth | The attribute to determine the minimal width of the column. Mandatory |
Parameter | Description |
---|---|
draggable | The attribute to determine whether the widget window can be dragged by end-user. 0 stands for no while 1 stands for yes. Mandatory |