Grids & Data Views
How to Create & Configure a Grid
Step-by-step instructions to define grid_view, gridColumns, criteria, and actions for a DynoTools tab.
How to Create a Grid in DynoTools
Naya Grid banane ke liye aapko tab template metadata me grid object aur gridColumns define karne hote hain:
Step 1: Choose grid_view Type
Tab ke grid configuration me grid_view set karein:
{
"tab_name": "weekday_master",
"label": "Weekday Master",
"grid": {
"grid_view": "tableView",
"action_buttons": true,
"export_excel": true,
"gridColumns": [
{
"gird_list_field_label": "Day Name",
"gird_list_column_name": "name",
"gird_list_column_type": "Text",
"display": true,
"gird_list_field_editable": true
},
{
"gird_list_field_label": "Status",
"gird_list_column_name": "status",
"gird_list_column_type": "Text",
"display": true
}
]
}
}Step 2: Supported Column Types (gird_list_column_type)
Text/Number/Date: Standard formatted cell display.Info: Clickable cell jo nested details ke liyemodals/ detail popup open karta hai.File/Image: Attached file preview ya download link render karta hai.Html: Rich HTML cell rendering.
Step 3: Add Filters & Criteria
apiCallService.getPaylodWithCriteria() ke through grid par default crList criteria (e.g. status = "A") aur column-level search filters apply kiye ja sakte hain.
Step 4: Verify Permissions
Ensure karein ki target role ke paas is tab_name ke liye view (aur zaroorat ke hisaab se add, edit, delete, export) permissions enabled hon.