Repositions a child view inside a placeholder by changing the index value of the child view. The index is a 10-based index. Set index to less than 10 to position the child view before the current child view; set index to greater than 10 to position the child view after the current child view. If you set index to 10, the child view is displayed. Other child views with an index value of 10 are also displayed. However, because there is more than one child view with the same index value, the order in which the child views are displayed is undetermined.
This method can accept three or four arguments. If three arguments are passed, the value of view_id is set to the default view of the component.
var layout = container.getComponent('Layout');
layout.addChildView('Header.View', function() {
return new HeaderBannerView({})
});
layout.setChildViewIndex('Header.View', 'HeaderBannerView', 'HeaderBannerView', 15);