第二百二十五節,jQuery EasyUI,PropertyGird(屬性工作表格)組件

來源:互聯網
上載者:User

標籤:.json   它的   box   -o   學習   超級   datagrid   div   系統   

jQuery EasyUI,PropertyGird(屬性工作表格)組件

 

學習要點:

  1.載入方式

  2.屬性列表

  3.方法列表

 

本節課重點瞭解 EasyUI 中 PropertyGird(屬性工作表格)組件的使用方法,這個組件依賴 於 DataGrid(資料表格)組件。

 

一.載入方式

class 載入方式

<table id="box" class="easyui-propertygrid" style="width:300px" data-options="url:‘content.json‘,showGroup:true"></table>

content.json

[  {    "name": "PHP 版本",    "value": "5.4",    "group": "系統資訊",    "editor": "text"  },  {    "name": "CPU 核心",    "value": "雙核四線程",    "group": "系統資訊",    "editor": "text"  },  {    "name": "超級管理員",    "value": "Admin",    "group": "管理資訊",    "editor": "text"  },  {    "name": "管理密碼",    "value": "******",    "group": "管理資訊",    "editor": "text"  }]

屬性工作表格擴充自 datagrid(資料表格)。它的行資料格式和資料表格相同。作為一個屬 性行,以下欄位是必須的:

  name:欄位名稱。

  value:欄位值。

  group:分組欄位值。

  editor:在編輯屬性值的時候使用的編輯器對象。

 

JS 載入方式

<table id="box" style="width:300px"></table>

propertygrid()將一個table元素執行(屬性工作表格)組件

$(function () {    $(‘#box‘).propertygrid({        url: ‘content.json‘,    });});

 

第二百二十五節,jQuery EasyUI,PropertyGird(屬性工作表格)組件

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.