@mindfusion/dataviews 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -3
- package/dataviews.d.ts +7 -6
- package/dist/cjs/dataviews.js +1 -1
- package/dist/esm/dataviews.js +1 -1
- package/dist/umd/dataviews.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,17 +27,33 @@ npm i @mindfusion/dataviews
|
|
|
27
27
|
- Styling through themes
|
|
28
28
|
- Row virtualization for faster rendering
|
|
29
29
|
|
|
30
|
-
##
|
|
30
|
+
## What's new in JS DataViews 2.1.2
|
|
31
31
|
|
|
32
|
-
The
|
|
32
|
+
The library registers the [Grid](https://www.mindfusion.eu/onlinehelp/javascript.pack/T_MindFusion_DataViews_Grid.htm) class as a web component. You can use the <mindfusion-grid> tag to create the control.
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
When instantiated as a web component, the control creates required HTML elements as internal shadow DOM. You can get the JavaScript object corresponding to a web component by calling the [find](https://www.mindfusion.eu/onlinehelp/javascript.pack/M_MindFusion_Common_Control_find_1_String.htm) method with id argument.
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
<mindfusion-grid id="grid">
|
|
38
|
+
</mindfusion-grid>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
var dv = MindFusion.DataViews;
|
|
43
|
+
var grid = dv.Grid.find("grid");
|
|
44
|
+
grid.model = new dv.ArrayModel(participants, columns, "index");
|
|
45
|
+
```
|
|
35
46
|
|
|
36
47
|
|
|
37
48
|
## What's new in JS DataViews 2.1
|
|
38
49
|
|
|
39
50
|
The [DataViews](https://www.mindfusion.eu/onlinehelp/javascript.pack/index.htm?N_MindFusion_DataViews.htm) module now includes a [Property Grid](https://www.mindfusion.eu/onlinehelp/javascript.pack/index.htm?PropertyGrid.htm) providing user interface for browsing and editing the properties of an object. The [PropertyGrid](https://www.mindfusion.eu/onlinehelp/javascript.pack/index.htm?T_MindFusion_DataViews_PropertyGrid.htm) control can be bound to any object or an array of objects as specified by its [selectedObject](https://www.mindfusion.eu/onlinehelp/javascript.pack/index.htm?P_MindFusion_DataViews_PropertyGrid_selectedObject_0.htm) property. If [showAllProperties](https://www.mindfusion.eu/onlinehelp/javascript.pack/index.htm?P_MindFusion_DataViews_PropertyGrid_showAllProperties_0.htm) is set to **true**, the control enumerates all properties and fields of the object and its prototype chain, resolves their data types and displays their name and value in a grid layout. If showAllProperties is set to **false**, only properties and fields included in the [metaData](https://www.mindfusion.eu/onlinehelp/javascript.pack/index.htm?P_MindFusion_DataViews_PropertyGrid_metaData_0.htm) dictionary are displayed.
|
|
40
51
|
|
|
52
|
+
## React support
|
|
53
|
+
|
|
54
|
+
The GridView React component allows integrating the MindFusion.DataViews API into React applications. It is a wrapper component for the Grid control, handles the rendering and keeps its DOM in sync with React’s virtual DOM. Grid properties can be set from JSX, and grid events can be handled through JSX syntax as well.
|
|
55
|
+
|
|
56
|
+
[The GridView component for React on npm.](https://www.npmjs.com/package/grid-library-react)
|
|
41
57
|
|
|
42
58
|
## Documentation
|
|
43
59
|
|
package/dataviews.d.ts
CHANGED
|
@@ -1800,12 +1800,12 @@ declare module "DataViews/jsdv/src/Grid" {
|
|
|
1800
1800
|
*/
|
|
1801
1801
|
get getCellValue(): EventDispatcher<any>;
|
|
1802
1802
|
/**
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1803
|
+
* Raised when the data type of a cell in a DynamicType column has to be resolved.
|
|
1804
|
+
* @event resolveCellDataType
|
|
1805
|
+
* @type {EventDispatcher}
|
|
1806
|
+
* @property {Grid} sender
|
|
1807
|
+
* @property {CellResolveEventArgs} args
|
|
1808
|
+
*/
|
|
1809
1809
|
get resolveCellMetaData(): EventDispatcher<any>;
|
|
1810
1810
|
/**
|
|
1811
1811
|
* Raised when the value of a cell in a DynamicType column has to be formatted.
|
|
@@ -1820,6 +1820,7 @@ declare module "DataViews/jsdv/src/Grid" {
|
|
|
1820
1820
|
* @private
|
|
1821
1821
|
*/
|
|
1822
1822
|
private get objectButtonClick();
|
|
1823
|
+
connectedCallback(): void;
|
|
1823
1824
|
}
|
|
1824
1825
|
import { UIControl } from "DataViews/jsdv/src/UIControl";
|
|
1825
1826
|
import { Unit } from "@mindfusion/common";
|