From f205e8d8493616238ca5372d3ea042bbb0472bd1 Mon Sep 17 00:00:00 2001 From: Seshu-Kumar-M Date: Wed, 1 Feb 2017 21:37:15 +0530 Subject: Sample code of Widgets Code with the sample usage of the OPEN-O GUI Framework for widgets Issue-Id : CLIENT-11 Change-Id: If8c16829a048221e213d44c8e752bbd4a4622632 Signed-off-by: Seshu-Kumar-M --- .../src/main/webapp/usage guide/appserver/api.js | 311 +++++++++++++++++++++ .../usage guide/appserver/data/buttonsData.json | 30 ++ .../usage guide/appserver/data/checkboxData.json | 8 + .../usage guide/appserver/data/dropdownData.json | 18 ++ .../usage guide/appserver/data/functionalData.json | 6 + .../webapp/usage guide/appserver/data/input.json | 1 + .../webapp/usage guide/appserver/data/list.json | 76 +++++ .../usage guide/appserver/data/radioData.json | 14 + .../usage guide/appserver/data/shortNote.json | 17 ++ .../appserver/node_modules/body-parser/index.js | 157 +++++++++++ .../appserver/node_modules/body-parser/lib/read.js | 188 +++++++++++++ .../node_modules/body-parser/lib/types/json.js | 175 ++++++++++++ .../node_modules/body-parser/lib/types/raw.js | 101 +++++++ .../body-parser/node_modules/bytes/index.js | 157 +++++++++++ .../body-parser/node_modules/bytes/package.json | 84 ++++++ .../body-parser/node_modules/content-type/index.js | 216 ++++++++++++++ .../node_modules/content-type/package.json | 70 +++++ .../body-parser/node_modules/debug/.jshintrc | 3 + .../body-parser/node_modules/debug/.npmignore | 6 + .../body-parser/node_modules/debug/History.md | 195 +++++++++++++ .../body-parser/node_modules/debug/Makefile | 36 +++ .../body-parser/node_modules/debug/Readme.md | 188 +++++++++++++ .../body-parser/node_modules/debug/bower.json | 28 ++ .../body-parser/node_modules/debug/browser.js | 168 +++++++++++ .../body-parser/node_modules/debug/component.json | 19 ++ .../body-parser/node_modules/debug/debug.js | 197 +++++++++++++ .../body-parser/node_modules/debug/node.js | 209 ++++++++++++++ .../node_modules/debug/node_modules/ms/.npmignore | 5 + .../node_modules/debug/node_modules/ms/History.md | 66 +++++ 29 files changed, 2749 insertions(+) create mode 100644 common/src/main/webapp/usage guide/appserver/api.js create mode 100644 common/src/main/webapp/usage guide/appserver/data/buttonsData.json create mode 100644 common/src/main/webapp/usage guide/appserver/data/checkboxData.json create mode 100644 common/src/main/webapp/usage guide/appserver/data/dropdownData.json create mode 100644 common/src/main/webapp/usage guide/appserver/data/functionalData.json create mode 100644 common/src/main/webapp/usage guide/appserver/data/input.json create mode 100644 common/src/main/webapp/usage guide/appserver/data/list.json create mode 100644 common/src/main/webapp/usage guide/appserver/data/radioData.json create mode 100644 common/src/main/webapp/usage guide/appserver/data/shortNote.json create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/index.js create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/lib/read.js create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/lib/types/json.js create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/lib/types/raw.js create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/bytes/index.js create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/bytes/package.json create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/content-type/index.js create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/content-type/package.json create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/.jshintrc create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/.npmignore create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/History.md create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/Makefile create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/Readme.md create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/bower.json create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/browser.js create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/component.json create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/debug.js create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/node.js create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/node_modules/ms/.npmignore create mode 100644 common/src/main/webapp/usage guide/appserver/node_modules/body-parser/node_modules/debug/node_modules/ms/History.md (limited to 'common/src') diff --git a/common/src/main/webapp/usage guide/appserver/api.js b/common/src/main/webapp/usage guide/appserver/api.js new file mode 100644 index 00000000..d6517f11 --- /dev/null +++ b/common/src/main/webapp/usage guide/appserver/api.js @@ -0,0 +1,311 @@ +/* + + Copyright 2016-2017, Huawei Technologies Co., Ltd. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +*/ + +var express = require('express'); +var router = express.Router(); +/*var js2xmlparser = require("js2xmlparser"); +var xml2js = require('xml2js');*/ +var fs = require('fs'); +var http = require('http'); +var bodyParser = require('body-parser'); +var path=require('path'); + +var MongoClient = require('mongodb').MongoClient; +var ObjectId = require('mongodb').ObjectId; + +var url = 'mongodb://localhost/rest_test'; + +/*var exists = require('file-exists');*/ + +// ############################################ Sign In code ################################################# +// Routes +router.post('/signin', function (req, res) { + console.log("signin"); + var obj = { + "name": req.body.name, + "pswd": req.body.pswd + }; + + var ObjLst =[] ; + var nameExist =0; + console.log(obj); + ObjLst = JSON.parse(fs.readFileSync('./data/input.json', 'utf8')); + for(var index = 0; index < ObjLst.length; index++) { + if (ObjLst[index].name === req.body.name && ObjLst[index].pswd === req.body.pswd) { + console.log("success"); + nameExist++; + res.statusCode=200; + res.statusMessage="Sucessfully loged in"; + break; + } + } + if (nameExist != 1) { + console.log("failed"); + res.statusCode=404; + res.statusMessage="failed to login"; + } + res.send(); +}); + +// ############################################ Sign Up Code ################################################# + +router.post('/signup', function (req, res) { + + console.log("in api.js"); + + var ObjLst =[] ; + var nameNotExist =0; + var obj = { + "name": req.body.name, + "pswd": req.body.pswd, + "email": req.body.email + }; + if(fs.existsSync("./data/input.json")) { + console.log("File Exist"); + ObjLst = JSON.parse(fs.readFileSync('./data/input.json', 'utf8')); + } + + for(var index = 0; index < ObjLst.length; index++) { + if (ObjLst[index].name === req.body.name && ObjLst[index].email === req.body.email) { + console.log("success"); + nameNotExist++; + break; + } + } + if (nameNotExist == 0) { + ObjLst.push(obj); + console.log(ObjLst); + fs.writeFile('./data/input.json', JSON.stringify(ObjLst), function(err) { + if (err) { + return console.error(err); + } + console.log("Data written successfully!"); + console.log("Let's read newly written data"); + res.statusCode=200; + res.statusMessage="Sucessfully signed up"; + }); + } + res.send(); +}); + +function getDataFrmProvince() { + var provinceData =[] ; + if(fs.existsSync("./data/provinceData.json")) { + console.log("File Exist"); + provinceData = JSON.parse(fs.readFileSync('./data/provinceData.json', 'utf8')); + } + return provinceData; +} + +function saveDataToProvince(provinceData) { + fs.writeFile('./data/provinceData.json', JSON.stringify(provinceData), function(err) { + var statueCode = 0; + if (err) { + console.error(err); + return statueCode = 404; + } + console.log("Data written successfully!"); + console.log("Let's read newly written data"); + return statueCode = 200; + }); +} + +function getIndexOfIdProvince(id) { + var provinceData = getDataFrmProvince(); + var returnIndx = -1; + for (var index = 0; index < provinceData.length; index++) { + if(provinceData[index].id == id) { + returnIndx = index; + break; + } + } + return returnIndx; +} + +function deleteIdFromProvince(idList) { + var provinceData = getDataFrmProvince(); + /*for (var index = 0; index < provinceData.length; index++) { + if(provinceData[index].id == id) { + console.log("Deleting id : " + index); + provinceData.splice(index, 1); + break; + } + }*/ + for(var i = 0; i < idList.length; i++) { + for (var index = 0; index < provinceData.length; index++) { + if(provinceData[index].id == idList[i]) { + console.log("Deleting id : " + index); + provinceData.splice(index, 1); + break; + } + } + } + return provinceData; +} + +router.get('/getAllProvinceData', function (req, res) { + var provinceData = getDataFrmProvince(); + if(provinceData) { + output = '{"provinceData" : ' + JSON.stringify(provinceData) + '}'; + + res.setHeader("Content-Type", "application/json"); + console.log("output : " + JSON.stringify(output)); + res.end(output); + } + /*MongoClient.connect(url, function(err, db) { + console.log("Connected... :-)"); + var cursor = db.collection('ProvinceData').find({},function(err, cursor) { + cursor.toArray(function (err, items) { + output = '{"provinceData" : ' + JSON.stringify(items) + '}'; + + res.setHeader("Content-Type", "application/json"); + //console.log("output : " + JSON.stringify(output)); + res.end(output); + }); + }); + db.close(function(){ + console.log("Connection Closed... :-)"); + }); + });*/ +}); + + +router.post('/addProvinceData', function(req, res) { + var provinceData = getDataFrmProvince(); + var gen_id = Math.floor(Math.random() * (9999 - 1000 + 1)) + 1000; + provinceData.push({ + "id": gen_id, + "province_name": req.body.province_name, + "ip": req.body.ip, + "port": req.body.port + }); + var statusCode = saveDataToProvince(provinceData); + res.statusCode=statusCode; + + if(statusCode == 200) { + res.statusMessage="Sucessfully signed up"; + } + else { + res.statusMessage="Error"; + } + + /*MongoClient.connect(url, function(err, db) { + db.collection('ProvinceData').insertOne({ + province_name: req.body.province_name, + ip: req.body.ip, + port: req.body.port + }); + db.close(); + });*/ + res.statusCode=200; + res.statusMessage="Sucessfully signed up"; + res.send(); +}); + +router.post('/deleteProvinceData', function (req, res) { + //var provinceData = getDataFrmProvince(); + console.log("IdList: "+ req.body.idList); + /*for(var i = req.body.idList.length - 1; i >= 0; i--) { + var index = getIndexOfIdProvince(req.body.idList[i]); + console.log("Deleting id : " + index); + if(index != -1) { + provinceData.splice(index, 1); + } + //deleteIdFromProvince(req.body.idList[i]); + };*/ + + var provinceData = deleteIdFromProvince(req.body.idList); + + saveDataToProvince(provinceData); + + /*MongoClient.connect(url, function(err, db) { + + console.log("Deleting Province Data... " + req.body.idList); + for(var i = 0; i < req.body.idList.length; i++) { + db.collection('ProvinceData').deleteOne({ "_id": ObjectId(req.body.idList[i])}); + } + /!*db.collection('ProvinceData').deleteOne({ "_id": ObjectId(req.body.idList)});*!/ + + db.close(function(){ + console.log("Connection Closed... :-)"); + }); + res.send(); + });*/ + res.statusCode=200; + res.statusMessage="Sucessfully signed up"; + res.send(); +}); + +router.post('/editProvinceData', function (req, res) { + var provinceData = getDataFrmProvince(); + var index = getIndexOfIdProvince(req.body.id); + console.log("Editing id : " + index); + if(index != -1) { + provinceData[index].province_name = req.body.province_name; + provinceData[index].ip = req.body.ip; + provinceData[index].port = req.body.port; + } + saveDataToProvince(provinceData); + + res.statusCode=200; + res.statusMessage="Sucessfully signed up"; + res.send(); + /*MongoClient.connect(url, function(err, db) { + + console.log("Editing Province Data... " + req.body._id); + db.collection('ProvinceData').updateOne( + { "_id": ObjectId(req.body._id)}, + { + $set: {'province_name': req.body.province_name, 'ip': req.body.ip, 'port': req.body.port} + } + ); + + db.close(function(){ + console.log("Connection Closed... :-)"); + }); + res.send(); + });*/ +}); + + +///////////////////////////////////////////////// To Read JSON data for all widgets ////////////////////////////////////////// + +function getDataFrmJSON(wdgtType) { + var jsonData =[] ; + if(fs.existsSync("./data/"+wdgtType+".json")) { + console.log("File Exist"); + jsonData = JSON.parse(fs.readFileSync('./data/'+wdgtType+'.json', 'utf8')); + } + return jsonData; +} + +router.post('/getAllJSONData', function (req, res) { + var jsonData = getDataFrmJSON(req.body.wdgtType); + if(jsonData) { + output = '{"data" : ' + JSON.stringify(jsonData) + '}'; + res.setHeader("Content-Type", "application/json"); + console.log("output : " + JSON.stringify(output)); + res.end(output); + } +}); + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +// Return router +module.exports = router; + diff --git a/common/src/main/webapp/usage guide/appserver/data/buttonsData.json b/common/src/main/webapp/usage guide/appserver/data/buttonsData.json new file mode 100644 index 00000000..0176461c --- /dev/null +++ b/common/src/main/webapp/usage guide/appserver/data/buttonsData.json @@ -0,0 +1,30 @@ +{ + "default_btn_data" : { + "def_button" : {"title":"Default"}, + "def_print_button" : {"title":"Print", "type":"btn btn-default", "gType": "glyphicon-print", "iconPosition":"left"}, + "def_print_button_right" : {"title":"Search", "type":"btn btn-default", "gType": "glyphicon-search", "iconPosition":"right"} + }, + + "visual_btn_data" : { + "vis_pri_btn_data" : {"title":"Primary", "type":"primary"}, + "vis_sec_btn_data" : {"title":"Secondary", "type":"secondary"}, + "vis_succ_btn_data" : {"title":"Success", "type":"success"}, + "vis_inf_btn_data" : {"title":"Info", "type":"info"}, + "vis_warn_btn_data" : {"title":"Warning", "type":"warning"}, + "vis_dang_btn_data" : {"title":"Danger", "type":"danger"}, + "vis_link_btn_data" : {"title":"Link", "type":"link"} + }, + + "diffSize_btn_data" : { + "size_small_btn_data" : {"title": "Small Button", "type": "primary", "size": "btn-sm"}, + "size_large_btn_data" : {"title": "Large Button", "type": "primary", "size": "btn-lg"}, + "size_block_btn_data" : {"title": "Large Block Button", "type": "primary", "size": "btn-lg btn-block"} + }, + + "icon_btn_data" : { + "search_icon_btn_data" : {"title": "Search Icon", "type": "btn-default", "gType": "glyphicon-search"}, + "search_icon_styled_btn_data" : {"title": "Styled Search Icon", "type": "primary", "gType": "glyphicon-search"}, + "print_icon_btn_data" : {"title": "Print", "type": "primary btn-lg", "gType": "glyphicon-print"} + } + +} diff --git a/common/src/main/webapp/usage guide/appserver/data/checkboxData.json b/common/src/main/webapp/usage guide/appserver/data/checkboxData.json new file mode 100644 index 00000000..f86d319d --- /dev/null +++ b/common/src/main/webapp/usage guide/appserver/data/checkboxData.json @@ -0,0 +1,8 @@ +{ + "checkbox_default_data" : {"id":1, "label":"Default check box", "type":"default", "checked":true}, + "checkbox_primary_data" : {"id":2, "label":"Primary check box", "type":"primary", "checked":false}, + "checkbox_success_data" : {"id":3, "label":"Success check box", "type":"success", "checked":true}, + "checkbox_danger_data" : {"id":4, "label":"Danger check box", "type":"danger", "checked":true}, + "checkbox_warn_data" : {"id":5, "label":"Warn check box", "type":"warning", "checked":false}, + "checkbox_info_data" : {"id":6, "label":"Info check box", "type":"info", "checked":true} +} \ No newline at end of file diff --git a/common/src/main/webapp/usage guide/appserver/data/dropdownData.json b/common/src/main/webapp/usage guide/appserver/data/dropdownData.json new file mode 100644 index 00000000..a02e31c0 --- /dev/null +++ b/common/src/main/webapp/usage guide/appserver/data/dropdownData.json @@ -0,0 +1,18 @@ +{ + "dropped_down_data" :{"title":"DropDown","position":"down", "items":[{"itemLabel": "Node JS"},{"itemLabel": "JS"}]}, + "dropped_up_data" : {"title":"DropUp","position":"up", "items":[{"itemLabel": "PHP"},{"itemLabel": "ASP"}]}, + "dropHeader_data" :{"title":"DropHeader","position":"down", + "items":[{"itemLabel": "Web UI", "isheader":true}, + {"itemLabel": "HTML", "isheader":false}, + {"itemLabel": "CSS", "isheader":false}, + {"itemLabel": "JS", "isheader":false}, + {"itemLabel": "Programming", "isheader":true}, + {"itemLabel": "C", "isheader":false}, + {"itemLabel": "C++", "isheader":false}] + }, + "dropSimple_data" : {"title":"Gadgets", + "items":[ + {"itemLabel": "Cameras"},{"itemLabel": "Mobile Phones"},{"itemLabel": "Computers"},{"itemLabel": "Monitors"},{"itemLabel": "Tablets"},{"itemLabel": "Others"} + ] + } +} \ No newline at end of file diff --git a/common/src/main/webapp/usage guide/appserver/data/functionalData.json b/common/src/main/webapp/usage guide/appserver/data/functionalData.json new file mode 100644 index 00000000..35b66f49 --- /dev/null +++ b/common/src/main/webapp/usage guide/appserver/data/functionalData.json @@ -0,0 +1,6 @@ +{ + "create_data" : {"title":"Create", "labels":[{"text": "Username", "input_id":"username", "type":"text"},{"text": "Password", "input_id":"username", "type":"password"}], "showClose":"true","closeBtnTxt":"Cancel","msg":"This is Create dialog box", "buttons":[{"text": "Ok"}]}, + "modify_data" : {"title":"Modify", "labels":[{"text": "Username", "input_id":"username", "type":"text"},{"text": "Password", "input_id":"username", "type":"password"}], "showClose":"true","closeBtnTxt":"Cancel","msg":"This is Modify dialog box", "buttons":[{"text": "Ok"}]}, + "delete_data" : {"title":"Delete", "showClose":"true","closeBtnTxt":"Cancel","msg":"This is Delete dialog box", "buttons":[{"text": "Ok"}]}, + "workflow_data" : {"title":"Workflow","showClose":"true","closeBtnTxt":"Cancel","msg":"This is Workflow dialog box", "buttons":[{"text": "Ok"}]} +} diff --git a/common/src/main/webapp/usage guide/appserver/data/input.json b/common/src/main/webapp/usage guide/appserver/data/input.json new file mode 100644 index 00000000..7126e781 --- /dev/null +++ b/common/src/main/webapp/usage guide/appserver/data/input.json @@ -0,0 +1 @@ +[{"name":"shahid","pswd":"shahid","email":"shahid@gmail.com"},{"name":"noor","pswd":"noor","email":"noor@lnt.com"}] \ No newline at end of file diff --git a/common/src/main/webapp/usage guide/appserver/data/list.json b/common/src/main/webapp/usage guide/appserver/data/list.json new file mode 100644 index 00000000..505bbcc2 --- /dev/null +++ b/common/src/main/webapp/usage guide/appserver/data/list.json @@ -0,0 +1,76 @@ +[ + { + "id": "113", + "title": "Movies", + "subMenu": [ + { + "title":"Sci-fi", + "subsubMenu":[ + {"title":"Intersteller"}, + {"title":"Inception"}, + {"title":"The Arrival"}, + {"title":"The Paycheck"} + ] + }, + { + "title":"Animation", + "subsubMenu":[ + {"title":"Big Hero"}, + {"title":"Monster University"}, + {"title":"Frozen"}, + {"title":"Car"} + ] + }, + { + "title":"Action", + "subsubMenu":[ + {"title":"Mission Impossible"}, + {"title":"The Expendables"} + ] + }, + { + "title":"Horror", + "subsubMenu":[ + {"title":"Evil Dead"}, + {"title":"Anebelle"} + ] + }, + { + "title":"Comedy", + "subsubMenu":[ + {"title":"Superbad"}, + {"title":"Airplane"}, + {"title":"Clueless"} + ] + } + ] + }, + { + "id": "211", + "title": "Games", + "subMenu": [{"title":"Outdoor Games", "subsubMenu":[{"title":"Cricket"},{"title":"Football"}, {"title":"Volleyball"}, {"title":"Hockey"}]}, {"title":"Indoor Games", "subsubMenu":[{"title":"Carroms"},{"title":"Table Tennis"}]}, {"title":"Puzzles", "subsubMenu":[{"title":"Sudoku"},{"title":"Chess"}]}, {"title":"Card Games", "subsubMenu":[{"title":"UNO"},{"title":"RUMMY"}]}] + }, + { + "id": "037", + "title": "Animals", + "subMenu": [{"title":"Mammals", "subsubMenu":[{"title":"Monkey"},{"title":"Elephant"}]}, {"title":"Birds", "subsubMenu":[{"title":"Parrot"},{"title":"Ostrich"},{"title":"Eagle"}]}, {"title":"Reptiles", "subsubMenu":[{"title":"Snake"},{"title":"Lizard"},{"title":"Cameleon"}]}] + }, + { + "id": "127", + "title": "Vehicles", + "subMenu": [{"title":"Cars", "subsubMenu":[{"title":"Audi"},{"title":"Range Rover"}]}, {"title":"Bikes", "subsubMenu":[{"title":"Apache"},{"title":"Pulsar"},{"title":"FZ"},{"title":"Jupiter"},{"title":"Victor"},{"title":"Avengers"}]}, {"title":"Cycles", "subsubMenu":[{"title":"Hero"},{"title":"Lady Bird"},{"title":"Firefox"}]}] + }, + { + "id": "181", + "title": "Languages", + "subMenu": [{"title":"English"}, {"title":"French"}, {"title":"Chinese"}, {"title":"Hindi"}] + }, + { + "id": "210", + "title": "Continents", + "subMenu": [{"title":"Asia", "subsubMenu":[{"title":"India"},{"title":"China"}]}, {"title":"Africa", "subsubMenu":[{"title":"South Africa"},{"title":"Kenya"},{"title":"Zimbabwe"}]}] + } +] + + + diff --git a/common/src/main/webapp/usage guide/appserver/data/radioData.json b/common/src/main/webapp/usage guide/appserver/data/radioData.json new file mode 100644 index 00000000..da0daa47 --- /dev/null +++ b/common/src/main/webapp/usage guide/appserver/data/radioData.json @@ -0,0 +1,14 @@ +{ + "radio_btn_default_data" : {"id":1, "label":"Default Radio Btn", "type":"default", "checked":false}, + "radio_btn_primary_data" : {"id":2, "label":"Primary Radio Btn", "type":"primary", "checked":false}, + "radio_btn_success_data" : {"id":3, "label":"Success Radio Btn", "type":"success", "checked":true}, + "radio_btn_danger_data" : {"id":4, "label":"Danger Radio Btn", "type":"danger", "checked":false}, + "radio_btn_Warn_data" : {"id":5, "label":"Warn Radio Btn", "type":"warning", "checked":false}, + "radio_btn_info_data" : {"id":6, "label":"Info Radio Btn", "type":"info", "checked":false} +} + + + + + + diff --git a/common/src/main/webapp/usage guide/appserver/data/shortNote.json b/common/src/main/webapp/usage guide/appserver/data/shortNote.json new file mode 100644 index 00000000..6b2942a8 --- /dev/null +++ b/common/src/main/webapp/usage guide/appserver/data/shortNote.json @@ -0,0 +1,17 @@ +{ + "treeTip":"Ztree", + "accordionTip":"Use the data-parent attribute to make sure that all collapsible elements under the specified parent will be closed when one of the collapsible item is shown.", + "tabTip":"Tabs are created with