在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:jasonkneen/com.jasonkneen.tabfonts开源软件地址:https://github.com/jasonkneen/com.jasonkneen.tabfonts开源编程语言:JavaScript 100.0%开源软件介绍:TabFonts for AlloyOverviewThis 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 projectsQuick Start
"dependencies": {
"com.jasonkneen.tabfonts":"1.0"
}
<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>
$.tabFonts.init({
tabGroup : $.index,
font : "MarkerFelt-Wide",
color: "black",
selectedColor: "white",
fontSize: 11
}); LicenseCopyright 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. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论