
- #ELEMENTS SWITCHUP TEMPLATE HOW TO#
- #ELEMENTS SWITCHUP TEMPLATE INSTALL#
- #ELEMENTS SWITCHUP TEMPLATE CODE#
- #ELEMENTS SWITCHUP TEMPLATE DOWNLOAD#
For example: the search finds text field but does not find textfield.įor most UI components to work, you need to drop them inside the block, preferably inside a layout component. The search works only with the title of the component and not the actual name used in the code. TIP: Use the search of the Components panel to quickly find the element that you want to use. Any methods that go with it (such as what happens on button or item tap) are automatically added right below in the block.
#ELEMENTS SWITCHUP TEMPLATE CODE#
Releasing the mouse button inserts some pre-written sample code for the respective component. Just click a component from the Components panel and drag it to the code editor, somewhere inside the block in components > HelloWorld.vue. The bottom of the page is your best friend providing real-time error reports and device logs.
#ELEMENTS SWITCHUP TEMPLATE DOWNLOAD#
The Components panel provides quick access to already pre-configured code for all available NativeScript UI components.įrom the top of the page, you can push changes to the preview apps on your device, save, and download your code. No need to deep dive in any other files for now. Most of your effort on your app will happen in components > HelloWorld.vue, where you'll be creating the user interface and the business logic behind it. The left sidebar offers a file explorer and a Components panel. Keep the apps running while you're experimenting with the code. You can ignore this step but without it, you'll miss most of the fun and excitement of playing around with Vue.js and NativeScript. Together they let you see your code changes applied in real time on device.
#ELEMENTS SWITCHUP TEMPLATE INSTALL#
If this is your first time here, the Playground prompts you to install a couple of mobile apps-the NativeScript Playground and the NativeScript Preview.

#ELEMENTS SWITCHUP TEMPLATE HOW TO#
TIP: Head to Sample Tasks for the Playground for ideas about how to get started in the Playground.

You can use it to just get a taste of NativeScript development or to develop your entire project inside. You can work in the Playground for as long as you like. Fire the link and start dragging and dropping component code around the place. Instead of swapping/changing elements on a page, can I delete the element altogether?Īt this time, you can only swap and change elements on a page in Smart Builder - you cannot remove the element from the page altogether.The NativeScript Playground is a place in the cloud where you can just play around with NativeScript and Vue.js from your browser until you figure out the basics. See our documentation to learn more about how to search and install an Unbounce App. Look for the Change Element next to an App to detect whether it's swappable with other elements.

Some apps, once downloaded, will be included in the drop-down list of elements you swap out.įor example, after downloading the Giphy App, a prompt appears explaining that you can change any element on your page with a Giphy element instead: Unbounce Apps are add-on tools or features you can easily install onto your page in Smart Builder. The Forms tab consists of a form, and the Social Media tab would consist of any social media Unbounce Apps you've downloaded:Įdit the new element as you like! Be sure to Save and Publish your page when you're all set.
