cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabor Apati-Nagy <gabor.apati-n...@citrix.com>
Subject RE: UI Development
Date Tue, 03 Jun 2014 17:13:48 GMT
Hi Matt,

There are ui controls in /ui/scripts/ui/widgets that generate the actual controls/page based
on JSON definitions at /ui/scripts. AFAIK there is no complete UI documentation, but you can
take a look here: https://cwiki.apache.org/confluence/display/CLOUDSTACK/UI+widget+samples

To add a column to the UI you need to extend a JSON object where the columns in question are
defined. If you search in the *.js files in /ui/scripts directory for "listView" and then
you go any listView's "fields:" definition you will find examples. You can add the field/column
there. If the "dataProvider" of the listView is already getting this column as part of the
current API response (eg. debug it with FireBug or see the API), you are done. If not then
the dataProvider needs to be changed as well.

What is the new column that you plan to add? I would recommend discussing this on the list
first.

Gabor

-----Original Message-----
From: Matt Spurlin [mailto:matt.spurlin@appcore.com] 
Sent: 03 June 2014 17:13
To: dev@cloudstack.apache.org
Subject: UI Development

I am trying to get a grasp on how the UI is generated for CloudStack.
Are there any good documented resources for the UI? For example, say I wanted to add another
column to the table of storage devices, is there any documentation that would help me figure
this out?
Mime
View raw message