No subject
Sun Jan 20 21:10:45 EST 2013
- 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 requiremen=
t for UI Plugins, we should consider implementing it.
Plugin API proposal:
api.addMainTabTextColumn(
// entityTypeName
'VirtualMachine',
// headerText
'My Column',
=20
// 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 co=
lumn.)
For custom columns whose values are computed asynchronously, we could suppo=
rt 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 abov=
e) 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) ?
>=20
>=20
> 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.
>=20
>=20
> In RHEL 5 virt-manager show something like this:
> http://i.imgur.com/e18DJtf.png
>=20
>=20
> --
>=20
> 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
>=20
> =E2=80=9CThe bureaucracy is expanding to meet the needs of the expanding
> bureaucracy.=E2=80=9D =E2=80=95 Oscar Wilde
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>=20
_______________________________________________
Users mailing list
Users at ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
More information about the Users
mailing list