qcell-react 1.0.92 → 1.0.93

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcell-react",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "description": "QCELL component for React. Righttech Co., Ltd. All rights reserved.",
5
5
  "main": "dist/index.js",
6
6
  "types": "./src/types/index.d.ts",
@@ -11,6 +11,7 @@
11
11
  "src/QCELL/css/qcell_scrollbar.css",
12
12
  "src/QCELL/lib/jquery/plugins/jqueryUI/jquery-ui.css",
13
13
  "src/QCELL/lib/timepicker/jquery-ui-timepicker-addon.css",
14
+ "src/QCELL/js/qcell.api.js",
14
15
  "src/types/index.d.ts"
15
16
  ],
16
17
  "scripts": {
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @since QCELL v1.0.0
3
+ * @author sai1515
4
+ * @description 입력받은 데이터로 QCELL 데이터를 갱신합니다.
5
+ * @param {Array} data - 갱신할 데이터
6
+ * @param {boolean} bForce - 데이터 강제 갱신
7
+ * @returns {boolean}
8
+ * @example
9
+ * QCell1.setData([{"name" : "kevin", "age" : "35"},{"name" : "tom", "age" : "21"}]); //QCELL의 data 타입이 "object"인 경우
10
+ * QCell1.setData([["kevin", "35"],["tom", "21"]]); //QCELL의 data 타입이 "array"인 경우
11
+ * QCell1.setData([],true); //QCELL의 data 강제로 갱신 하는 경우
12
+ */
13
+ QBOX.QCELL.BasicQCELL.prototype.setData = function(data , bForce){
14
+ var strAPI = this.attr('id') + '.setData';
15
+
16
+ if(arguments.length < 1){
17
+ QBOX.QCELL.log("log", strAPI, this.attr('msg').err.PARAM_COUNT);
18
+ } else{
19
+ if(QBOX._.isArray(data)){
20
+ if(bForce !== true){
21
+ if(this._checkData(data))
22
+ return true;
23
+ }
24
+
25
+ return this._setData(data);
26
+ } else{
27
+ QBOX.QCELL.log('log', strAPI, this.attr('msg').err.PARAM_TYPE);
28
+ }
29
+ }
30
+
31
+ return false;
32
+ };