Advance configure
Full project tutorial
Release Notes
Advanced configure
チュートリアル
This is the place for managing pages/custom components
Here are the place display list Pages, and you can choose the tab Custom components to list out all custom components in the project
Also, we can press the +Page button to create a new page
ページのルートを選択し、右パネルのActionsタブより「Add action」をクリックします。
表示したいデータをResponseにもつAPIをEndpointに指定
Propsに表示したいデータの型と名前を設定します(名前は任意ですが、実際のコードに反映されるため意味のある命名を推奨します)。
Textを選択した状態でText Content上部の「Set from variable」を押し、Custom Component Propsを選択 し、先ほど設定したPropsを設定します。
Listコンポーネントを利用したいページへ戻り、先ほどのCustom ComponentをList Itemに設定し、 Propsの値を「Set from variable」からAPIを選択し表示するデータを選択します。
We can Duplicate/Export/Rename/Delete the pages/custom components
Layout tree used for display tree node of current focus Page/Molecule
At tab 2, we have the Layout tree, which is the tree structure of the current focus Page/Molecule, also we can drag to re-sort the position of each node
Choose on tab
Add
, then you can just drag the component you want into a canvas
This is for configuring properties for component
At first, you need to tap to focus on the component you wanna update properties, then can freely adjust properties on the right panel
Actions for configuring authentication API, interacting with backend API
Select some Button
component, then select the Actions
tab on the right panel, you can add action to the button by adding Add action
button
Here are some important actions
We can configure props for pages/components
We can configure props by choosing props configuration like the image below, just press Add prop
to add more props to your custom components
Button
component and we can set label from prop by select Set from variables
We also can configure Function
prop to handle some on-click button action
For Function
prop, it a little bit complex, we must config which component action trigger this Function
prop, like image below, we want when press on Button
component it trigger this Function
prop
We just select Actions
→ Add action
→ Choose action type Custom component props
than just choose the Function prop we just defined
Here is the benefit when configuring props for a custom component, you can just pass prop
Click the preview code button to preview the code
Here’s the result of previewed code
With branding colors, you can configure some common usage colors and we can reuse them in Editor
After selecting the tree node, we can configure advanced properties settings for component As image below, we can set
font-size
to100px
only on aTablet device
<aside> 💡 We use this to configure complex responsive design layout
</aside>