spz-render
When to Use
- When you need to retrieve and render data through one or multiple interfaces.
- When you need to render using script data.
Code Demonstration
Basic Usage
The most basic usage, retrieving data through an interface.
Retrieving Data Through a Script
Properties
src Data Source Methods
The src property value can use ; to configure multiple data sources. There are three ways to retrieve data:
- Retrieve data through an API interface
script:<scriptId>: Retrieve data throughscriptspz-script:<spzScriptId>: Retrieve data throughspz-script
Methods
render
Re-request data for rendering.
rerender
Render with new data passed.
Events
finish
This event automatically triggers when rendering finishes. When using the rerender method with the once parameter set to true and if it's not the first render, this event will not be triggered.
afterOnceFinish
This event automatically triggers when calling the rerender method with the once parameter set to true and it's not the first render.
AI Summary (LLM Ready)
- Component ID:
spz-render - One-line purpose: Retrieve data and render it.
- Detected attribute rows: 0
- Detected method subsections: 2
- Detected event subsections: 2
- Top attribute names: none (needs manual completion)
- Top method names:
render,rerender - Top event names:
finish,afterOnceFinish - Reading order: start from usage/examples, then verify attributes, methods, and events.
- Related docs: /en/guide/actions-and-events/ , /en/guide/layouts/