PDA

View Full Version : List of available config types?



6dust
6 Feb 2014, 9:47 AM
Is there a list somewhere that shows the different values for the "type" attribute of the config settings in a user extension definition?

By trial and error I've figured out that type "datafield" will correctly show the fields of a type "store" that has been also been added to the config, but I'm very curious about all of the types available. I'm specifically looking for the value for a TreeStore type, but none of the values I've tried are working. A full list would be very helpful.

Thanks,
Eric

honestbleeps
6 Feb 2014, 10:14 AM
At a quick glance (not quite complete), here's a good chunk of them:

boolean, string, array, datafield, controller, model, view, store, date, function, number, template, typedarray...

Off the top of my head I'm not sure if we support a 'treestore' type specifically, but you could certainly use 'store' -- that won't restrict your selection to just tree stores though, which I'm guessing is your goal - is that correct? If it is, I do have some help for you! A bit more complex than just adding 'treestore', but not too hard!

6dust
6 Feb 2014, 12:13 PM
Thanks for the quick response! You are correct, I would like for the dropdown to show just tree stores, but I would also be okay with using "store" and selecting the tree store from the full list. The problem with that is when I put in "store" as the type, the dropdown doesn't include any tree stores, only regular stores.

nickweedon
24 Dec 2014, 7:13 AM
I am also interested in there being a 'treestore' type.
It seems to be quite a shame to not have this feature. At the moment I have to resort to using type 'object' which is a bit disappointing.

ragzovskii
14 Jan 2015, 1:09 AM
I am also interested in there being a 'treestore' type.
It seems to be quite a shame to not have this feature. At the moment I have to resort to using type 'object' which is a bit disappointing.

+1 to this. I can tell architect that my tree store is regular Ext.data.Store but not sure about hidden implications.

C.Parcell
16 Jun 2015, 9:24 AM
You may have already figured this out by now, but here is a link to the list of config types.

https://docs.sencha.com/architect/3/reference/user_extension_structure.html#config_types

I would be interested to know if anyone has gotten a config working that allows the user to select a field (dataindex) from an already selected store/model

ragzovskii
13 Jul 2015, 2:50 AM
We definetly need a treestore config type for following reasons:1) We have extended tree store in our component, we want to expose common tree configs2) But if we tell architect our store inherits TreeStore, that tree store will be filtered in any store picker. At the same time, that tree store will be visible in tree store picker (e.g. for tree panel's 'store' config).I'd be happy to see architect team to respond here.

mankz
16 Jul 2015, 12:25 AM
Bump

petr.vecera
7 Aug 2017, 11:27 AM
Hello guys

You can set-up the treestore config like this:


{ name: 'TreePanelStore',
type: 'store',
storeSelector: 'treestore'
}

Working example https://github.com/petrvecera/SenchaArchitect-aux , https://github.com/petrvecera/SenchaArchitect-aux/blob/master/FooExtensionClassic/1.0.2/architect/SpecialTreePanel.Definition.js#L20


Petr

petr.vecera
8 Aug 2017, 12:23 AM
'storeSelector': 'treestore' // when you want to have treestore in there
'storeSelector': '' // when you want all types of stores (the empty string is important)
'storeSelector': 'calendar' // when you want calendar store

petr.vecera
20 Aug 2017, 12:45 PM
FYI I have update the docs with the settings so if anyone is intrested http://docs-devel.sencha.com/architect/4.2/guides/reference/user_extension_structure.html#reference-_-user_extension_structure_-_configs