The Mock Widget is a development and testing tool that renders a layout template with custom JSON data. It is used by developers to preview layout designs before building a full widget.
Common Tasks
Adding the Widget to a Page
- Navigate to the page in the Contensive page editor.
- Click the widget tool to open the widget panel.
- Find the Mock Widget in the Design Blocks category.
- Drag the widget onto the page at the desired location.
Editing Widget Content
- Click the edit icon on the Mock Widget.
- Select a Layout template to render.
- Enter JSON data in the Mock JSON field. This data is passed to the selected layout template for rendering.
- Click the edit icon on the widget and open the advanced editor.
- Delete the record to remove it permanently.
Edit Dialog Fields
| Field |
Description |
| Layout |
Select the layout to use for rendering |
| Mock JSON |
JSON data used to populate the mock template |
Advanced Edit Fields
| Field |
Tab |
Description |
| Name |
Control Info |
Internal name for this widget |