ember-1

Highlight row is not getting disappear after I click the next table row

风流意气都作罢 提交于 2019-12-02 07:11:42
问题 I need to create background as yellow while selecting the gear icon for the menu option in the table row, I have tried the below code for highlighting the table row, var view = Core.view.Menu.create({ model: model, menuContext: { ibmm: ibmm }, anchor: this.$(), highlight: this.$().parents('tr:first').css('background-color','yellow') }); view.show(); While selecting the menu from the table row (hidden) with the gear icon, the background color is coming well. [![enter image description here][1]

Ember-table integration with Ember-model / Ember-data

自古美人都是妖i 提交于 2019-11-30 03:54:19
I am trying to link ember-models to the ember-table to pull paginated records from the server and add them to the table when scrolling down. I can get it working by just requesting my api url with page number like in the ajax example on http://addepar.github.io/ember-table/ but i cant figure out how to integrate it with ember-model to create and ember objects and then add them to the table. Here is my code to just make an ajax request and add to table. Can anyone tell me how i can change this to use ember-model / ember-data instead. App.TableAjaxExample = Ember.Namespace.create() App

Ember-table integration with Ember-model / Ember-data

爱⌒轻易说出口 提交于 2019-11-29 00:49:13
问题 I am trying to link ember-models to the ember-table to pull paginated records from the server and add them to the table when scrolling down. I can get it working by just requesting my api url with page number like in the ajax example on http://addepar.github.io/ember-table/ but i cant figure out how to integrate it with ember-model to create and ember objects and then add them to the table. Here is my code to just make an ajax request and add to table. Can anyone tell me how i can change this