Answer the question
In order to leave comments, you need to log in
How to remove (not show) Backbone element?
Yes View
Marionette.LayoutView.extend({
ui: {
"upload": "#upload",
"edit": "#edit",
"proceed": "#proceed",
"actions": ".registration-actions"
},
onSuccess: function() {
// отобразить все ui-элементы
},
onError: function() {
//показать только "upload"
}
});
Answer the question
In order to leave comments, you need to log in
onSuccess: function() {
this.ui.upload.show();
this.ui.edit.show();
this.ui.proceed.show();
this.ui.actions.show();
},
onError: function() {
this.ui.upload.show();
this.ui.edit.hide();
this.ui.proceed.hide();
this.ui.actions.hide();
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question