How to change the UI of the LabKey Server ?

LabKey Support Forum (Inactive)
How to change the UI of the LabKey Server ? rubiaasharaf9222  2013-06-17 23:56
Status: Closed
 
I am working on windows os, LabKey version 13.1, and FireFox browser.I want to change the ui of existing labkey (adding extra tabs,buttons,icons and changing options in navigation bars etc..).For this purpose can i use api or should i make changes in code.If i wish to make changes in code where is my starting point ,i am completely stuck with the situations roads are all block please somebody make my way clear
Thank you
 
 
jeckels responded:  2013-06-20 13:56
Hello,

It really depends on exactly what parts of the UI you want to change. There are existing APIs and administrator features for specific parts of the UI.

For example, you can go to Admin->Folder->Project Settings->Men Bar to add custom UI to the menu bar that's in the header of each page.

If you want to add buttons to a data grid, you can specify this in XML metadata using the ButtonBarOptions part of the schema:

http://www.labkey.org/download/schema-docs/xml-schemas/schemas/tableInfo_xsd/complexTypes/ButtonBarOptions.html

You can set this XML on a particular table/query by going to Admin->Developer Links->Schema Browser, finding the schema and query you want to customize, clicking on Edit Metadata, and then on the Edit Source button. Example XML would look something like this:

        <tables xmlns="http://labkey.org/data/xml">
            <table tableName="Runs" tableDbType="TABLE">
                <buttonBarOptions position="both" includeStandardButtons="true">
                    <item text="Simple Assay Button" permission="READ" insertPosition="end">
                      <onClick>alert('button clicked');</onClick>
                    </item>
                </buttonBarOptions>
            </table>
        </tables>

Thanks,
Josh