I suggest that we use this topic to request adding simple events and properties to JS API that already exist in Dart but have not yet been exposed to JS. To begin with here are a few items:
Add “length” property to GridColumnList to be consistent with ColumnList
Add “left” and “right” properties to GridColumn
Add “rowHeight” property to Grid
Add “columnHeaderHeight” property to Grid
Add onViewerAdded, onViewerClosed events to Events class
Good idea to keep these simple requests in one topic! We’ll add them soon. By the way, rowHeight and colHeaderHeight properties are already available via the viewer properties:
Thank you for exposing the requested properties and events! Regarding rowHeight and colHeaderHeight, yes, they can be set using grid’s options, but reading their values is complicated. The getOptions() method of the Grid viewer returns a string that needs to be parsed. It would be much easier to have those two as normal read/write class properties.
Thank you for adding the requested properties! However the “left” and “right” properties of the GridColumn class only provide the corresponding getters. Could you please add the setters as well?. This is fundamental for our continuous zoom feature to function properly.
Dialog is an extremely useful component in the UI class that we use for different purposes. Could you please extend its JS API to enable some extra functionality like
reposition on the screen (moveTo(x,y)),
the ability to hide the Cancel button
the ability to receive event on Cancel button click
Done! In addition to the requested features, we’ve also added the ability to specify context actions. Here’s the snippet that demonstrates the new functionality:
Could you please add isVirtual property to the Column class? This property should return ‘true’ when a column was created using the addNewVirtual() method:
In the Dialog class onClose is a “get” property unlike onOk and onCancel which are handler functions.
Could you please either make onClose to be a function or add a “set” counterpart so that a listener could be installed? Either way is fine, but for consistency reasons making it a function would be preferable.