Giter VIP home page Giter VIP logo

ember-moving's Introduction

Base classes for jQueryMobile Support

 This Librairy actually add some specifics View and one Controller to emberjs
 
 Require: emberjs, jquery, jquery mobile and the css file for all the previous librairy
 
 This code is base of the work of LuisSala to see his code go to  https://github.com/LuisSala/emberjs-jqm

 Any help will be welcome...

 List of the added class (abstract are omitted):

  - Mov.PageView is the conterpart of the page element in JQMobile.

  - Mov.HeaderView is the conterpart of the toolbar header element in JQMobile.

  - Mov.ContentView is the conterpart of the content element in JQMobile.

  - Mov.FooterView is the conterpart of the toolbar Footer element in JQMobile.

  - Mov.ListItemView is the conterpart of the element of a List View in JQMobile.

  - Mov.ListView is the conterpart of a List View in JQMobile.

First be sure to look at the proof of concept from LuisSala at  https://github.com/LuisSala/emberjs-jqm

How to use it :

In you html file define your view as follow :

  <script type="text/x-handlebars" data-template-name="main">

    {{#view App.HeaderView}}
        <h1>EIReader (Easy Internet Reader)</h1>
    {{/view}}

    {{#view App.MyView}}
      {{#view App.Button target="App.seriesControler" action="addMore"}}Add More Items{{/view}}
      <br/>
      {{#collection App.ListView contentBinding="App.seriesControler"}}
        <a href="#">
            <b>{{content.title}}</b> <small>{{content.description}} ({{content.nbChapter}} chapters)</small>
        </a>
      {{/collection}}
    {{/view}}

    {{#view App.FooterView}}
      Footer
    {{/view}}

  </script>

  In your App.js you should use the new View and Controller

	App = Em.Application.create();


	App.MyView = Mov.ContentView.extend({

	});

	App.HeaderView = Mov.HeaderView.extend({

	});

	App.FooterView = Mov.FooterView.extend({

	});
	
	App.ListView = Mov.ListView.extend({});

I am currently working of a app using this library and I will create a new repo for it as soon as possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.