• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

jasonkneen/com.jasonkneen.tabfonts: Alloy widget to add custom fonts / text colo ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

jasonkneen/com.jasonkneen.tabfonts

开源软件地址:

https://github.com/jasonkneen/com.jasonkneen.tabfonts

开源编程语言:

JavaScript 100.0%

开源软件介绍:

TabFonts for Alloy

Overview

This is a widget for the Appcelerator Alloy MVC framework which works ontop of an existing iOS TabGroup to allow custom captions, fonts etc.

The idea was to come up with something that could "just work" - you can add to your index.xml, initalise the widget with the TabGroup and setup some basic settings.

NOTE: This is very much "work in progress" and I'm tweaking as I use this in current projects

TabFonts

Quick Start

  • Download the latest version of the widget as a ZIP file.
  • Unzip the folder to your project under app/widgets/com.jasonkneen.tabfonts.
  • Add the widget as a dependency to your app/config.json file:
"dependencies": {
	"com.jasonkneen.tabfonts":"1.0"
}
  • Add the widget as the last item in the first Window of your TabGroup.
<Alloy>
	<TabGroup platform="ios">		
		<Tab title="Home" icon="530-scooter.png" >
			<Window>
				<TitleControl platform="ios">
					<Label color="#fff" id="title">Home</Label>
				</TitleControl>
				<Require src="home" type="view"/>
				<Widget id="tabFonts" src="com.jasonkneen.tabfonts"/>
			</Window>
		</Tab>
		<Tab title="New" icon="533-helicopter.png">
			<Window class="container" title= "New">
				
				<Label id="label" >Hello, World</Label>
			</Window>
		</Tab>
		
	</TabGroup>
	<Require platform="android" src="home"></Require>
</Alloy>
  • Configure the widget from the index.js file (current properties supported shown here)
$.tabFonts.init({
	tabGroup : $.index,
	font : "MarkerFelt-Wide",
	color: "black",
	selectedColor: "white",
	fontSize: 11
});

License

Copyright 2014 Jason Kneen

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Sponsor @jasonkneen on GitHub Sponsors · GitHub发布时间:2022-06-19
下一篇:
honeytai/icon2font: icon2font tool发布时间:2022-06-19
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap