Advance configure
Full project tutorial
Release Notes
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
Select the page route and click "Add action" from the Actions tab in the right panel.
Specify an API with the data you want to display in the Response as the Endpoint.
Create a new Custom component.
Set the type and name of the data you want to display in the Props (any name is fine, but meaningful naming is recommended as it will be reflected in the actual code).
With Text selected, click "Set from variable" at the top of the Text Content, select Custom Component Props, and set the props you have just set.
Return to the page where you want to use the List component, set the Custom Component to "List Item" and select API from "Set from variable" for the value of "Props" to select the data to be displayed.
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>
← Previous
Add link here
Next →
Add link here
On this page