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.

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to