Announcement

Collapse
No announcement yet.

getModelFactory,getCollectionFactor(),createView()??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • getModelFactory,getCollectionFactor(),createView()??

    Can someone explain getModelFactory(), getCollectionFactory(), and createView()? And how can I use separately and/or nested? Can I use either function, when user clicks a button, create a window filled with a few buttons that can view whatever I want?

  • #2
    PHP Code:
    this.getModelFactory().create('Meeting', function (model) {
       
    model.id 'some id';
       
    model.fetch().done(function () {
           
    console.log(model.get('status'));
       }.
    bind(this));
    }, 
    this); 
    createView - creates a nested view.

    Comment


    • #3
      In createview, how can I place a button onto the scope when viewing an entity?
      PHP Code:


      ​this
      .createView('Call','clientDefs.Call.modalViews.select',{  scope'Call',​  createButtonfalse  },function(view){    view.render();  self.notify(false);     this.listenToOnce(view,'select',function(model){     })  }) 
      Last edited by elbowprogrammer; 02-03-2016, 09:33 PM. Reason: found my answer to previous question, asking a different one that help me meet my deadline.

      Comment


      • #4
        Sorry. This not very trivial question. Try to look to source code. It's possible to add buttons in record/detail view

        Comment

        Working...
        X