Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using The `scrollview` component without `widget.defs`.

According to `View Components Guide`, I need to edit `widget.defs` when using The `scrollview` component.

 

But I tried the below code (without editing `widget.defs`). 

<svg>
<!-- I wrote `link`s here instead of writing it in "widget.defs" -->
<defs>
<link rel="import" href="/mnt/sysassets/widgets/baseview_widget.defs" />
<link rel="import" href="/mnt/sysassets/widgets/scrollview_widget.defs" />
</defs>
<svg>
<use href="#scrollview">
<use href="#scrollview-item" display="flexible-height">
<text y="0" />
<text y="$" x="50%" text-anchor="middle" fill="white">1</text>
<text y="$" x="50%" text-anchor="middle" fill="white">2</text>
<text y="$" x="50%" text-anchor="middle" fill="white">3</text>
...
</use>
</use>
</svg>
</svg>

tatesuke_0-1663914682228.png

 

I think it looks like it's working. Is there any problem with this way?

Best Answer
0 Votes
0 REPLIES 0