k0sukey / alloy.widget.iconicfont Goto Github PK
View Code? Open in Web Editor NEWTiIconicFont (https://github.com/k0sukey/TiIconicFont) on Alloy widget.
License: Other
TiIconicFont (https://github.com/k0sukey/TiIconicFont) on Alloy widget.
License: Other
<Widget class="icon" id="test" icon="icon-facebook" src="be.k0suke.fontawesome" />
$.test.addEventListener('click',function(){alert('test');});
However, the fireEvent
works just fine
$.test.fireEvent('test');
Secondary issue is that you can't use the selectedColor
property (so you can get an icon to sort of act like a button.
Third issue is that inserting the widget inside a button like
<Button>
<Widget />
</Button>
creates a top padding above the widget.
I can include the widget via JS, but for some reason not XML, I am getting the following error, have you have seen this before?
[INFO] created: "Resources/alloy/widgets/be.k0suke.ssforecast/controllers/widget.js"
[DEBUG] map: "build/map/Resources/alloy/widgets/be.k0suke.ssforecast/controllers/widget.js.map"
[INFO] [index.xml] view processing...
[INFO] style: "index.tss"
[INFO] view: "index.xml"
[INFO] controller: "index.js"
[TRACE] - Processing "builtins" module...
[TRACE] - Processing "optimizer" module...
[TRACE] - Processing "compress" module...
[INFO] created: "Resources/alloy/controllers/index.js"
[DEBUG] map: "build/map/Resources/alloy/controllers/index.js.map"
[INFO] [weather.xml] view processing...
[INFO] style: "weather.tss"
[INFO] view: "weather.xml"
[ERROR] [ERROR] widget "be.k0suke.ssforecast" view "widget" does not exist.
[ERROR] [ERROR] The following paths were inspected:
[ERROR] [ERROR] /Users/iantearle/Titanium/SomethingBlew/app/widgets/be.k0suke.ssforecast/views/ios/widget
[ERROR] [ERROR] /Users/iantearle/Titanium/SomethingBlew/app/widgets/be.k0suke.ssforecast/views/widget
[ERROR] [ERROR] /usr/local/lib/node_modules/alloy/widgets/be.k0suke.ssforecast/views/ios/widget
[ERROR] [ERROR] /usr/local/lib/node_modules/alloy/widgets/be.k0suke.ssforecast/views/widget
[ERROR] Alloy compiler failed
I'm wondering if the latest alloy has changed something?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.