浏览代码

fix #2586: Update file name

zhixin 8 年之前
父节点
当前提交
4543d9f43f

+ 0 - 46
src/extensions/click-edit-row/Editable(row).html

@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-    <title>Editable(row)</title>
-    <meta charset="utf-8">
-    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
-    <link rel="stylesheet" href="../../bootstrap-table.css">
-    <link rel="stylesheet" href="editable.css">
-    <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
-    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
-    <script src="../../bootstrap-table.js"></script>
-    <script src="./bootstrap-table-click-edit.js"></script>
-</head>
-<body>
-    <div class="container">
-        <h1>Editable(row)</h1>
-        <table id="table"
-               data-toggle="table"
-               data-click-edit="true"
-               data-unique-id="treeId"
-               data-url="data1.json">
-            <thead>
-            <tr>
-                <th data-field="id">ID</th>
-                <th data-field="name" data-editable="input">Item Name</th>
-                <th data-field="price" data-editable="select">Item Price</th>
-            </tr>
-            </thead>
-        </table>
-    </div>
-    <script>
-        $(function () {
-          //Setup options for your 'Select'options, obj name must same as your data-field name.
-          $.selectArray=
-            {price: [{idxNum: '$', name: '100'}, {idxNum: '$', name: '500'}, {idxNum: 'NT$', name: '1000'}, {idxNum: 'NT$', name: '2500'}, {idxNum: 'NT$', name: '5000'}],
-             name: [{idxNum: 1, name: 'Jenny'}, {idxNum: 2, name: 'Aby'}, {idxNum: 3, name: 'Martin'}, {idxNum: 4, name: 'Hellen'}, {idxNum: 5, name: 'Steve'}]};
-          
-          $('#table').bootstrapTable(); // init via javascript
-
-          $(window).resize(function () {
-              $('#table').bootstrapTable('resetView');
-          });
-        });
-    </script>
-</body>
-</html>

+ 5 - 4
src/extensions/click-edit-row/README.md

@@ -1,13 +1,14 @@
 # Table click-edit-row
 # Table click-edit-row
 
 
 Use Plugin: [bootstrap-click-edit-row](https://github.com/wenzhixin/bootstrap-table/tree/develop/src/extensions/click-edit-row) </br>
 Use Plugin: [bootstrap-click-edit-row](https://github.com/wenzhixin/bootstrap-table/tree/develop/src/extensions/click-edit-row) </br>
-You must include the editable.css file in order to get the appropriate style.
+You must include the bootstrap-table-click-editable.css file in order to get the appropriate style.
 Ps. Used this plugin is better on table columns not more than five.
 Ps. Used this plugin is better on table columns not more than five.
 
 
 ## Usage
 ## Usage
 
 
 ```html
 ```html
-<script src="extensions/click-edit-row/bootstrap-table-click-edit.js"></script>
+<link rel="stylesheet" href="bootstrap-table-click-edit-row.css"></style>
+<script src="bootstrap-table-click-edit-row.js"></script>
 ```
 ```
 
 
 ## Options
 ## Options
@@ -23,7 +24,7 @@ All options can be defined via `data-editable-*` HTML attributes. Table wide opt
 
 
 ````html
 ````html
 <table id="my_table_id"
 <table id="my_table_id"
-  data-url="data1.json">
+  data-url="data.json">
   <thead>
   <thead>
     <tr>
     <tr>
       <th data-field="id">ID</th>
       <th data-field="id">ID</th>
@@ -32,4 +33,4 @@ All options can be defined via `data-editable-*` HTML attributes. Table wide opt
     </tr>
     </tr>
   </thead>
   </thead>
 </table>
 </table>
-````
+````

src/extensions/click-edit-row/editable.css → src/extensions/click-edit-row/bootstrap-table-click-edit-row.css


src/extensions/click-edit-row/bootstrap-table-click-edit.js → src/extensions/click-edit-row/bootstrap-table-click-edit-row.js


+ 0 - 107
src/extensions/click-edit-row/data1.json

@@ -1,107 +0,0 @@
-[
-    {
-        "id": 0,
-        "name": "Item 0",
-        "price": "$0"
-    },
-    {
-        "id": 1,
-        "name": "Item 1",
-        "price": "$1"
-    },
-    {
-        "id": 2,
-        "name": "Item 2",
-        "price": "$2"
-    },
-    {
-        "id": 3,
-        "name": "Item 3",
-        "price": "$3"
-    },
-    {
-        "id": 4,
-        "name": "Item 4",
-        "price": "$4"
-    },
-    {
-        "id": 5,
-        "name": "Item 5",
-        "price": "$5"
-    },
-    {
-        "id": 6,
-        "name": "Item 6",
-        "price": "$6"
-    },
-    {
-        "id": 7,
-        "name": "Item 7",
-        "price": "$7"
-    },
-    {
-        "id": 8,
-        "name": "Item 8",
-        "price": "$8"
-    },
-    {
-        "id": 9,
-        "name": "Item 9",
-        "price": "$9"
-    },
-    {
-        "id": 10,
-        "name": "Item 10",
-        "price": "$10"
-    },
-    {
-        "id": 11,
-        "name": "Item 11",
-        "price": "$11"
-    },
-    {
-        "id": 12,
-        "name": "Item 12",
-        "price": "$12"
-    },
-    {
-        "id": 13,
-        "name": "Item 13",
-        "price": "$13"
-    },
-    {
-        "id": 14,
-        "name": "Item 14",
-        "price": "$14"
-    },
-    {
-        "id": 15,
-        "name": "Item 15",
-        "price": "$15"
-    },
-    {
-        "id": 16,
-        "name": "Item 16",
-        "price": "$16"
-    },
-    {
-        "id": 17,
-        "name": "Item 17",
-        "price": "$17"
-    },
-    {
-        "id": 18,
-        "name": "Item 18",
-        "price": "$18"
-    },
-    {
-        "id": 19,
-        "name": "Item 19",
-        "price": "$19"
-    },
-    {
-        "id": 20,
-        "name": "Item 20",
-        "price": "$20"
-    }
-]