Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
770 มุมมอง

I have create an OWL component like this

import....
export class ActionComponent extends Component{
​setup(){
​this.state = useState({
​data:[]
​})
​onWillStart (async () =>
const data = await ...​// make request on back end controller
​this.state.data = data
​)
​}
registry.category("actions").add("owl.action_component",ActionComponent)

Then there is a controller that made an api call to an external serivice API and return a lis of dict to the component

Then I have create a second component to render the state.data of the ActionComponent

The question is there is a possibility to use ListRenderer component just passing the list of dictionary?

In my mind somenthing about this

'''XML TEMPLE'''

....

...





อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Something was lost in message :D

ListRenderer records="state.data"


อวตาร
ละทิ้ง