top of page

7 レッスン   |   69分

Velo でコーディング:リピーター

Sign in to view all course videos.
Let's go

 →

Congratulations on finishing this course—keep up that momentum

03:13

08:16

14:10

12:31

09:36

09:49

11:44

このコースについて

リピーターと動的データで開発を効率化すれば、静的なコードを手動で更新する必要がなくなります。リピーターの概要と仕組みからフォーマット調整、データ入力、更新・修正の方法など、Velo を使ってよりスマートかつ高速なコードを書くために、リピーターの使い方を詳しく解説します。

コースの内容

  • リピーターデータの作成、削除、フォーマット調整、追加、修正、更新など、リピーターのライフサイクル全体について

  • コードを使用して独自のアイテムリストを作成する方法

  • 動的なリピーターレイアウトの作成とフォーマット調整

  • リピーターの機能をカスタマイズする方法

  • リピーターと Wix API やその他のフロントエンド、サードパーティ API を接続するためのベストプラクティス

Still frame from the Velo by Wix course: Joshua Alphonse, Wix Developer Advocate

Wix.com のデジタルクリエイター / デベロッパーアドボケート。問題解決について考えるのが好きで、Web で成功する秘訣を開発者に伝授するのが日課。趣味は音楽制作。

Wix デベロッパーアドボケート

講師プロフィール

Joshua Alphonse

こんな人におすすめ

  • コードでリピーターを使用したい経験豊富な開発者の方

  • リピーターの実装経験があり、Velo を使ったデプロイを希望する開発者の方

お役立ちリソース

学んだスキルを生かすために役立つヘルプ記事や、すぐに使えるホームページテンプレートをチェックしましょう。

  • Loading...

  • Loading...

  • Loading...

  • Loading...

リピーターの概要

In this lesson, we're going to learn about repeaters, what they are and how you can use them.

You have a list of items that you want to display on the page in a nice, neat, orderly fashion, a repeater can help you do that.

Now, repeaters can have data that go through them dynamically or statically, and throughout this course, we're going to be showing you how to do both of those.

So a repeater is a list of items that are visually set that you can display and also have multiple items that repeat.

So let's just say that I want to display a list of employees that I have working inside of a job.

Based on the screen here, I can have a list of people that have the same design, their names are in the same font, and even when I do bring in some more elements into the page, or onto the repeater, the elements will repeat for all the other lists of items, keeping the design the same.

So if I add this button to the first repeater here, and I attach this item, all the other repeater items are going to get this.

Now, this brings us into learning about the repeater structure.

So repeater, like I said, is a list of items visually that we can put nice and neatly inside order.

So if I drag and drop here, every other item will follow.

So we can even go here and expand our repeater a bit, above the space of these boxes as well.

So let's open up this container.

Move it down, and you'll see that every single item is going to follow the design right after this first item.

Now repeated can store dynamic data and static data.

So throughout this course, we're going to learn about using third-party services to populate a repeater, and even static data that you have stored right on your frontend code.

So to learn about these repeaters throughout this course, you're going to have to have some experience with the backend, and also frontend development.

So I encourage you to watch those two other courses for frontend and backend.

Now, let's get rid of this button, and we're going to go over the repeater again.

So a repeater can be populated in a few different ways.

So you can do this programmatically, or you can even work with the dataset and Content Manager as well.

Now throughout this course, we're not going toa be talking about the data setting and the Content Manager, we're going to be focusing primarily on the code.

Now, I can just drag and drop a repeater onto the page, and I can also id this repeater.

So if I go here and I open up my code panel, once I have dev mode on, I can just select this repeater and actually change the name.

So my planet repeater is a page element in itself, but it contains many other page elements that then repeat themselves.

So I can list my items in a nice, neat fashion.

There are a few event handlers that I can add to repeat.

I have "item onReady", "item onRemoved", "mouseIn", "mouseOut".

And throughout this course, we're going to be showing you how to use "item onReady", "item removed", because these are going to be the main functionalities that you're going to be using to display your data on your repeater.

So in our next lesson, we're going to be learning about how to add static data to your repeater, like how you kind of see here on our id right now.

And we're going to show you exactly how to import all that data straight into a repeater.

So we'll see in the next lesson.

{title}

Prep for your exam with free video courses and lessons

その他のおすすめコース

New

...

...

Loading...

...

...

Start Now →

New

...

...

Loading...

...

...

Start Now →

New

...

...

Loading...

...

...

Start Now →
Sign in to view all course videos.
Let's go

 →

Congratulations on finishing this course— Keep up that momentum
bottom of page