Enyo Developer Guide Bootplate: with Enyo in 5 Minutes · Planning and Structuring Your App · Tutorial: Building a Moonstone App. Enyo Essentials. As an Enyo developer, you have a great deal of freedom in choosing the platform . If you haven’t already done so, read through the Moonstone App Tutorial. This tutorial is geared for those already know the basic . Hope this tutorial helps in setting up the environment right for enyo development.

Author: Zolozilkree Najinn
Country: Seychelles
Language: English (Spanish)
Genre: Literature
Published (Last): 24 December 2016
Pages: 336
PDF File Size: 16.98 Mb
ePub File Size: 2.70 Mb
ISBN: 925-1-61847-975-1
Downloads: 65868
Price: Free* [*Free Regsitration Required]
Uploader: Mazushicage

Why was this document not helpful? This is as simple as adding a “classes” property to the “App” and setting that to “onyx”. In the above code ‘this. We value your feedback. The advantage of this is that it disables the ability to drag the image, which is important for touch interfaces.

Sample App using Enyo framework | Tizen Developers

Sample Application This article explains a sample application that can ‘rotate’ and ‘skew’ an image. In this method this.

Too difficult to understand. Enyo will create ‘getters’ and ‘setters’ for the properties defined in “Published” section of the code. Other reason enter details. This effectively makes the component itself the app. Onyx extends and improves the library of components available for Enyo by adding additional features and styling. And also add two buttons for “skewing” the image. Components can also be combined together to create more complex components.

The basic unit of an Enyo application is a “component”, and these “components” can combines and wired together in different ways to create an application.


EnyoJS Tutorial #1 – Getting Started

In this application “layoutKind” property of a control is used to apply proper layout to the application. After adding the ‘rotationChanged’ function to the code, the image will rotate through 90 degrees when user clicks on “Rotate” button.

Replace the content of ‘index. Inaccurate or wrong information.

EnyoJS Tutorial #1 – Getting Started | Is Good Stuff

This can then be reused across multiple applications or within the same application. Like with FittableRows one of these columns can have fit set to true and that column will expand to take up available space. The RotateComponent rutorial two subcomponents, an image, which is named as “logo” and a button with a label set to “Rotate”.

This article demonstrates the usage of Enyo framework. FittableRows allows user tutkrial place content in rows, on one of these rows user can set the fit property to true which will give it a variable height that will expand as the page is resized.

Below is the code for rotating and skewing the image enyo. Now divide the “Rotate” button into two, one for clockwise rotation and the other for counter clockwise rotation. User Menu Login Register. The first thing user has to do for using the ‘Onyx’ components is to add the “onyx” class to the application.

Enyo provides a number of ways to define the layout of applications, two important components for layouts are FittableRows and FittableColumns. Below is the code for the ‘rotationChanged’ method. In this case it will be able to find out when the rotation is changed, and update the component accordingly. Tizen Futorial Tizen 3. Below is the final code with proper layout enyo. Enyo also offers a library of components for layout. To reduce the complexity in the app remove the app that tutodial the “RotateComponent” and rename the RotateComponent to “App”.


FittableColumns allows user to place content in columns.

As a simple example, user may combine a text area, a submit button and a clear button into a search component. In this case the image and the button are the subcomponents. tytorial

In the above code the name property of the image is “logo”, this gives access to the image component though ‘this. The Onyx component set is designed with mobiles and tablets in mind. The applyStyle method applies a CSS style to the particular component. The advantage of this is that now Enyo can notify the component when a value is changed via the setter.

Now create a method called “rotationChanged”, and Enyo will automatically call it when ‘rotation’ value is changed via ‘setRotation’. Now the enyo framework is ready to use. Published Property Enyo will create ‘getters’ and ‘setters’ for the properties defined in “Published” section of the code. The next immediate change to be made is to convert all the normal buttons to Onyx buttons and also replace the “img” tag with an “enyo.

So in the above case, Enyo will automatically create the methods ‘setRotation’ and ‘getRotation’ on the object.