-
Notifications
You must be signed in to change notification settings - Fork 0
client icon
Emiel Mols edited this page Aug 12, 2015
·
1 revision
Renders an icon.
-
data: name of an icon, see list below. -
color: a color (e.g. #666), per default it's plugin.colors().highlite -
style: supply a css hash. -
cls: additional class assignment -
onTap: provide callback function for an onTap event -
size: provide size in pxiels, without 'px', per default: 26.
The list if available icons can be found here.
Example:
Dom = require 'dom'
Icon = require 'icon'
Plugin = require 'plugin'
Modal = require 'modal'
Dom.section !->
Icon.render
data: 'clock'
size: 50
color: '#666'
onTap: !->
Modal.show ("Time is " + new Date(Plugin.time() * 1000).toString() )
style: {display: 'block', margin: "10px auto", padding: '10px'}- [How it works](How it works)
- [Your first plugin](Your first plugin)
- Submitting and distributing your plugin
- Using the Developer Tools
- Example plugins on Github
-
API Reference
- Client
- [client plugin](client plugin)
- [client dom](client dom)
- [client obs](client obs)
- [client db](client db)
- [client server](client server)
- [client page](client page)
- [client ui](client ui)
- [client form](client form)
- [client icon](client icon)
- [client modal](client modal)
- [client photo](client photo)
- [client photoview](client photoview)
- [client time](client time)
- [client share](client share)
- [client map](client map)
- [client geoloc](client geoloc)
- Server
- [server event](server event)
- [server plugin](server plugin)
- [server http](server http)
- [server db](server db)
- [server photo](server photo)
- [server time](server time)
- Client
- Example UI elements