Skip to content

kgividen/com.netsmartcompany.floatingActionButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

com.netsmartcompany.floatingActionButton

A simple Floating Action Button for Titanium Alloy Widget. Based off of http://gitt.io/component/be.k0suke.tifab

Usage

Controller

$.addFolderFab.onClick(function(e) {
	addFolderClicked();
});
$.index.open();

Controller Options

Hide

$.addFolderFab.hideMe();

Show

$.addFolderFab.showMe();

View

<Alloy>
	<Window>
		<Widget id="addFolderFab" class="fab" src="com.netsmartcompany.floatingActionButton" />
	</Window>
</Alloy>

Style

'.fab': {
    zIndex: 1000,
    top: 20,
    right: 10,
    width: 60,
    height: 60,
    backgroundColor: '#cc2ecc40',
    borderWidth: 1,
    borderColor: '#ececec',
    title: '\uf067',
    font: {
        fontFamily: 'FontAwesome',
        fontSize: 40
    },
    color: '#ffffff'
}

iOS

License

MIT

About

Alloy widget for a simple floating action button

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published