[pve-devel] [PATCH widget-toolkit 2/4] add TimezonePanel for containers

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jul 6 11:12:02 CEST 2020


On 06.07.20 11:02, Oguz Bektas wrote:
>>> +
>>> +    initComponent: function() {
>>> +	var me = this;
>>> +
>>> +	var items = [];
>> how's that not just a static
>> items: [
>>     { ... },
>> ],
>>
>> definition?
>>
>> And even if it would need to be in initComponent then to me.items = [ ... ]
>> not that weird push every item step by step.
> honestly it didn't even occur to me that there's any difference.
> 

We use a framework with a schematic approach for defining the UI for a reason,
it makes reasoning and working with it much easier. Only that stuff that really
has to, should go in "schema-breaking" things like initComponent.




More information about the pve-devel mailing list