[Users] Custom columns in VM list (engine admin) ?

Vojtech Szocs vszocs at redhat.com
Fri Apr 5 14:28:00 UTC 2013


Hi Ernest,

as suggested by Oved, I definitely recommend to check out oVirt UI Plugins feature first.

>From API perspective, here's what you can currently do with UI Plugins:
- add custom {main|sub} tab, modify its content URL, set its accessibility
- add custom {button|contextMenuItem|both} to existing data grid
- show custom dialog, modify its content URL, close the dialog

Custom columns in existing WebAdmin data grids is an interesting requirement for UI Plugins, we should consider implementing it.

Plugin API proposal:

    api.addMainTabTextColumn(

        // entityTypeName
        'VirtualMachine',

        // headerText
        'My Column',
        
        // columnInterface
        {
            getValue: function(entity) {
                // In this case, entity is VM.
                // Return value should be string.
                return 'test-' + entity.id;
            },

            width: '200px'
        }

    );

(Similar thing could be done for other kinds of columns, e.g. percentage column.)

For custom columns whose values are computed asynchronously, we could support API such as:

    api.redrawMainTabTable('VirtualMachine');

Regards,
Vojtech


----- Original Message -----
From: "Oved Ourfalli" <ovedo at redhat.com>
To: "Ernest Beinrohr" <Ernest.Beinrohr at axonpro.sk>
Cc: users at ovirt.org
Sent: Thursday, March 28, 2013 4:10:43 PM
Subject: Re: [Users] Custom columns in VM list (engine admin) ?

Hi Ernest.
It is not possible to do so at the moment.
What you can do is add sub-tabs that will be opened when you stand on a VM on the VM list.
In that sub-tab you can point to some URL, and show the data you need over there, according to the selected VM.

More information of the UI plugins feature (which allows you to do the above) is in:
http://www.ovirt.org/Features/UIPlugins
It also includes some examples.

Hope it helps,
Oved


----- Original Message -----
> From: "Ernest Beinrohr" <Ernest.Beinrohr at axonpro.sk>
> To: users at ovirt.org
> Sent: Thursday, March 28, 2013 5:06:48 PM
> Subject: [Users] Custom columns in VM list (engine admin) ?
> 
> 
> Hi, is it possible to add columns to the VM list view in
> ovirt-engine administrator? I'd like to add a memory
> columns (max, current) and also some IO stats and.
> 
> 
> In RHEL 5 virt-manager show something like this:
> http://i.imgur.com/e18DJtf.png
> 
> 
> --
> 
> Ernest Beinrohr, AXON PRO
> Ing , RHCE , RHCVA , LPIC , +421-2--6241-0360 , +421-903--482-603
> icq:28153343, skype:oernii-work , jabber:oernii at jabber.org
> 
> “The bureaucracy is expanding to meet the needs of the expanding
> bureaucracy.” ― Oscar Wilde
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 
_______________________________________________
Users mailing list
Users at ovirt.org
http://lists.ovirt.org/mailman/listinfo/users



More information about the Users mailing list