[pve-devel] RFC: use declarative style in ExtJS components

Dietmar Maurer dietmar at proxmox.com
Thu Nov 19 15:43:44 CET 2015

> On November 19, 2015 at 2:23 PM Emmanuel Kasper <e.kasper at proxmox.com> wrote:
> Hi,
> I have noticed that we could save a bit of boilerplate code in many
> places in the gui, when using the so called  "declarative" style 
> of ExtJS, 
> Basically this involves moving non-dynamic properties (here
> PVE.Utils.kvm_keymap_array() will always return the same array) to the class
> body.
> Any objection to this style of code ?

What if you want to use the widget.VNCKeyboardSelector outside the edit window?

More information about the pve-devel mailing list