Skip to content

imobicloud/com.imobicloud.dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Titanium UI - Dialog

Dialog example

android theme

clone [https://github.com/ptquang86/template/tree/master/app/platform/android/res] to [app/platform/android/res/anim/]

tss

// app.tss
".theme-dialog": { backgroundColor: '#90ffffff' }

js

var dialog = Alloy.createWidget('com.imobicloud.dialog', {
	url: 'dialog/block_user',
	data: {}
});
dialog.on('done', function(e) {
	if (e.value) {
		alert('TODO');
	}
});
dialog.show();

Changes log:

  • 28/03/2017
    • support android animation
  • 13/12/2016
    • add theme-dialog style
    • add tapOutsideToHideDialog: default false If true: Tap on the overlay will hide this dialog
    • dialog is now a window, use createWidget to open dialog, with 2 params: url and data
      • url: the path to the dialog content
      • data: data will be passed to dialog content
    • add event 'done' Pass _hideDialog: true to hide this dialog from content inside
  • Remove visible parameter
  • Support tss class for widget

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published