PDA

View Full Version : ViewController - action - Target Type



Zeusss82
4 Dec 2017, 2:44 AM
Hi,

i don't find 'Ext.list.Tree' to ViewController - action - Target Type.

aravindballa
8 Dec 2017, 1:09 AM
Hey,

Not pretty clear on this. Can you elaborate?

Zeusss82
12 Dec 2017, 2:32 AM
I created a ActionSheet and added two 'Ext.list.tree'.

into ViewController I want add Action for TreeList, but i don't find it.

57285

At this time I create two event for TreeList (IMAGE 1)

But i want create Action on ViewController.


57284

grosst
9 Feb 2018, 11:44 AM
I created a ActionSheet and added two 'Ext.list.tree'.

into ViewController I want add Action for TreeList, but i don't find it.

57285

At this time I create two event for TreeList (IMAGE 1)

But i want create Action on ViewController.


57284

Create a function in your ViewController ---
as an example -


// viewcontroller selection change function
onSelecionChange: function(tree, node){
/// selection change logic
}


then on your treelist add a listener to use it



// add listener in treelist component to fire the selection change function you created above.
listeners: {
selectionchange: 'onSelectionChange'
}


This is what creating an ViewController action in architect does for you, sometimes you have to just do it manually.

Anyway, this should solve your problem.