Open In App

EasyUI jQuery propertygrid widget

EasyUI is a HTML5 framework for using user interface components based on jQuery, React, Angular and Vue technologies. It helps in building features for interactive web and mobile applications saving a lot of time for developers.

In this article, we will learn how to design a propertygrid using jQuery EasyUI. propertygrid provides users an interface for browsing and editing the properties of an object.



Downloads for EasyUI for jQuery:

https://www.jeasyui.com/download/index.php

Syntax:



<input class="easyui-propertgrid">

Properties:

Methods:

Approach:

 <link rel=”stylesheet” type=”text/css”  

 href=”https://www.jeasyui.com/easyui/themes/default/easyui.css”>

<link rel=”stylesheet” type=”text/css”  

 href=”https://www.jeasyui.com/easyui/themes/icon.css”>

<script type=”text/javascript”  

 src=”https://www.jeasyui.com/easyui/jquery.min.js”></script>

<script type=”text/javascript”  

 src=”https://www.jeasyui.com/easyui/jquery.easyui.min.js”></script>

Example :




<html>
<head>    
    <link rel="stylesheet" type="text/css" 
  
    <link rel="stylesheet" type="text/css" 
  
    <script type="text/javascript" 
        src="https://www.jeasyui.com/easyui/jquery.min.js"></script>
  
    <script type="text/javascript" 
        src="https://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
</head>
  
<body>
    <h1>PropertyGrid</h1>
    <table id="gfg" style="width:300px"></table>
  
    <script type="text/javascript">
        $('#gfg').propertygrid({
            showGroup: true,
            scrollbarSize: 20
        });
        var row = {
          name:'GfG',
          value:'GeeksforGeeks',
          group:'Websites',
          editor:'text'
        };
        $('#gfg').propertygrid('appendRow',row);
        var row = {
          name:'GfG',
          value:'Self Placed',
          group:'Courses',
          editor:'text'
        };
        $('#gfg').propertygrid('appendRow',row);
    </script>
</body>
  
</html>

Output:

 

Reference: http://www.jeasyui.com/documentation/


Article Tags :