Comments (4)
Okay, so I think I finally have it now. watching Arrays is hard! I basically have two watchers, one for the array length, the other for the array reassignment. If the length watcher gets fired and the length is different from the previous length (saved from either path) the actual watcher code gets fired. I have to do this because you could have an array length of 5, and reassign an array length of 10 and both watcher functions would get called. this way it only gets fired once per push/pop/reassign.
splice is not fully supported. If you have to splice the array you will want to copy and reassign after splicing is done... splicing is weird....
from ui-grid.
but it's fixed in the latest build.
from ui-grid.
I am experiencing this issue. I change the model with ui-sortable, which reorders the underlying array of elements within the grid, but does not create a push/pop ... I've been pulling my hair out actually. Assumed ng-grid watched for any change?
from ui-grid.
I am trying reassignment as well. I hook into sortable options and on update(), call a reassign method on the model (as a workaround)
reassign: function() {
console.log("Copying art JSON for reassignment in order to trigger update to ng-grid - remove when ng-grid bug is fixed");
var copy = JSON.parse(JSON.stringify(foo));
this.foo = copy;
$rootScope.$broadcast( 'FooService.update', this.foo );
}
... that doesn't work either. In fact only thing that works is slice.
from ui-grid.
Related Issues (20)
- The checkboxes of the filter of 'Name' pane of the context menu of the table are not receiving keyboard focus. HOT 1
- The Sorting information (Sorted ascending/sorted descending) of the table present under '01NLD Land' is not announced NVDA HOT 1
- [Screen Reader - MCIO DCX-O1NLD]: The Sorting information (Sorted ascending/sorted descending) of the table present under '01NLD Land' is not announced NVDA. HOT 1
- [Supporting the platform-MCIO DCX-O1NLD Land]: In High contrast (Aquatic, Desert, Dusk, Night sky) themes, focus indicator is not visible on the table header and rows. HOT 1
- [Accessibility]: Role defined for "Azure Sign in" is document. HOT 1
- [Accessibility]: On 200% zoom, some elements in the screen are not visible\truncated. HOT 1
- [Accessibility]: NVDA is reading the table as list. HOT 1
- [BUG] Grid width/height broken when grid is in an inactive ui-bootstrap tab HOT 1
- [BUG] Grid objects for Custom filters on the columns are getting lost or overwritten HOT 1
- Grouping does not work when a column has cell template property HOT 2
- [BUG] Aggregate functions are not working with columns which have the cell template property HOT 2
- Event is not triggering for the last character in filter box. HOT 2
- [BUG] Grids display broken for http://ui-grid.info/docs/... HOT 2
- [BUG] [a11y] With NVDA, space bar does not select row in ui-grid HOT 3
- [BUG] Currency symbols are not disturbed while using csvExport method from uiGridExporterService HOT 1
- [FEATURE] Add documentation for Vue3 save-state HOT 3
- [FEATURE] UI-Grid should be able to export the aggregate footer row to an excel file HOT 2
- Formatting is not applied to header column if we export to excel with mobile number HOT 3
- [BUG] scrollToIfNecessary down not working as expected HOT 2
- [BUG] Mousewheel scrolling (vertically) on pinned columns does not work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui-grid.