_template:
List: {
type: List,
direction: 'column',
y: 100,
x: MENU_WIDTH, w: PAGE_WIDTH - MENU_WIDTH,
h: SCREEN_HIGHT - 100,
}
_setup()
this.tag('List').add([
{ x: 10, y: 0, h: 200, w: PAGE_WIDTH, type: Carousel, items: [
{margin: 15, type: ImageCell, number: 1},
{margin: 15, type: ImageCell, number: 2},
{margin: 15, type: ImageCell, number: 3},
{margin: 15, type: ImageCell, number: 4},
{margin: 15, type: ImageCell, number: 5},
{margin: 15, type: ImageCell, number: 6}
]},
{
x: 10, y: 400, h: 300,
w: PAGE_WIDTH,
type: List, direction: 'row',
Child: {
mountX: 1,
y: y => y * 0.1 - 100,
x: 220,
color: Colors('white').get(),
text: {
text: 'Watch Next', fontFace: 'Londrina', fontSize: 50
},
},
items: [
{margin: 15, type: ImageCell, number: 1},
{margin: 15, type: ImageCell, number: 2},
{margin: 15, type: ImageCell, number: 3},
{margin: 15, type: ImageCell, number: 4},
{margin: 15, type: ImageCell, number: 5},
{margin: 15, type: ImageCell, number: 6}
],
}
])
Getting this error
lightning.js:8322 Uncaught Error: ItemWrapper (:[R]#1:[0]App:[1]Pages:[1]#26:[0]Content:[0]List:[0]Wrapper:[6]IW-f6yskpq4m:[0]#803:[0]Wrapper:[0]IW-i5zl2d5wn): Return value for _getFocused must be an attached descendant component but its ':[R]#1:[0]App:[1]Pages:[1]#26:[0]Content:[0]List:[0]Wrapper:[6]IW-f6yskpq4m:[0]#803:[0]Wrapper:[0]IW-i5zl2d5wn:[0]#816'
Any Help is appriciated