This may be completely obvious... I've been working on /record/detail.js in my module, but I can't seem to figure out what makes /#<entity>/create work. I want to apply the same things I'm doing in edit details to when a new item is created. Thanks.
The "create" view JS?
Collapse
X
-
Tags: None
-
Inovke view in edit mode
PHP Code:this.createView('DesiredEntity', 'views/record/edit', {
mode: 'edit',
model: model,
el: this.getView('YourViewWhereYouWantCreateView'),
buttonList: [{
name: 'save',
label: 'Save'
}, {
name: 'close',
label: 'Close'
}]
}, function (view) {
view.render();
}.bind(this))
-
Thank you, I was asking more for the JS side... this helped jog my memory that /views/record/edit does look to be what "create" uses.Comment
-
-
Comment
Comment