I'm just learning enyo, and made a simple program to use pans. Right now each pan is a button. Is there a way to have like a bunch of controls in each pan, instead of one? example on my code the first pan has a button called butA, could it have 3 buttons? my code
enyo.kind({
name: "MyApps.MainApp",
kind: enyo.VFlexBox,
components: [
{kind: "PageHeader", content: "Template"},
{kind: "Pane", transitionKind: "enyo.transitions.LeftRightFlyin", components: [
{kind: "Button", name:"butA", caption: "Pane A", onclick: "btnClickA"},
{kind: "Button", name:"butB",caption: "Pane B", onclick: "btnClickB"}
]}
],
/// code to switch pans
btnClickA: function() {
this.$.pane.selectView(this.$.butB);
},
btnClickB: function() {
this.$.pane.selectView(this.$.butA);//k
},
});