Code Monkey home page Code Monkey logo

imobicloud.com.imobicloud.html's Introduction

Titanium UI - HTML

Webview wrapper for Titanium

assets

- Move the folder [webview] in [com.imobicloud.html/assets] to [app/assets]
- Remove folder [remove this - has some advanced examples]
- Create test._js
- test._js has a function XX
	function XX(params) {
		$('#app').html(params.id);
		UTILS.hideAI();
	}
- test._js fire event YY
	UTILS.fireEvent(e, 'YY', { id: 1 });	

xml

<!-- Short -->
<Widget id="wv" src="com.imobicloud.html"/>

<!-- or Full 
	- url: path to html file
	- csss: css files used in html file
	- scripts: js files used in html file
	jquery._js + fastclick._js + index._js are included by default
	js extension is ._js to fix android loading js bug
	index._js has some utils that you may want to use :D
-->
<Widget id="wv" src="com.imobicloud.html" 
	url="/webview/html/index.html"
	csss="templates/stories.css,templates/comment.css"
	scripts="libs/Event._js,templates/stories._js,test._js"
	onYY="wvYY"
/>

js

function wvYY(e) {
	// e.id
}
	
// to call a js function name XX
$.wv.run({
	callback: 'XX',
	params: { id: 1 }
});

// remove webview
$.wv.unload();

Changes log:

  • You have to add ._js, .css manually

imobicloud.com.imobicloud.html's People

Watchers

Brenton House avatar

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.