<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Wink toolkit - A mobile JavaScript framework to build great webapps  &#187;  Topic: Are the Notifications included in wink ?</title>
		<atom:link href="http://www.winktoolkit.org/discussion/topic/are-the-notifications-included-in-wink/feed" rel="self" type="application/rss+xml" />
		<link>http://www.winktoolkit.org/discussion/topic/are-the-notifications-included-in-wink/feed</link>
		<description></description>
		<pubDate></pubDate>
		<generator>http://bbpress.org/?v=2.0.2</generator>
		<language>en</language>

		
														
					
				<item>
					<guid>http://www.winktoolkit.org/discussion/topic/are-the-notifications-included-in-wink/#post-1819</guid>
					<title><![CDATA[Are the Notifications included in wink ?]]></title>
					<link>http://www.winktoolkit.org/discussion/topic/are-the-notifications-included-in-wink/#post-1819</link>
					<pubDate>Thu, 29 Mar 2012 13:38:32 +0000</pubDate>
					<dc:creator>philipp</dc:creator>

					<description>
						<![CDATA[
						<p>Hey,</p>
<p>I am wondering where I can find some examples about the Button notifications in the Kitchensink demo.<br />
I tried to get my hands on the javascript code but I found out that this elements are located under ks.tests.notifications is there any way in using those elements for myself ?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://www.winktoolkit.org/discussion/topic/are-the-notifications-included-in-wink/#post-1821</guid>
					<title><![CDATA[Reply To: Are the Notifications included in wink ?]]></title>
					<link>http://www.winktoolkit.org/discussion/topic/are-the-notifications-included-in-wink/#post-1821</link>
					<pubDate>Fri, 30 Mar 2012 06:17:57 +0000</pubDate>
					<dc:creator>admin</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>The button is not directly included in Wink but yes, you can easily use it for yourself:</p>
<p>Take the HTML code of the buttons:</p>
<pre>
&lt;div class="w_footer_custom"&gt;
	&lt;input type="button" value="add" class="w_button_custom w_rounded_left" onclick="toolbar.add();"/&gt;
	&lt;div class="w_button_custom w_indice" &gt;
		&lt;span id="test_toolbar_1"&gt;1&lt;/span&gt;
		&lt;input type="button" value="emails" onclick="javascript:void(0);"/&gt;
	&lt;/div&gt;
	&lt;input type="button" value="menu" class="w_button_custom w_rounded_right" onclick="javascript:void(0);"/&gt;
&lt;/div&gt;
</pre>
<p>Add the right styles into your page:</p>
<pre>
.w_header_custom, .w_footer_custom
{
	position: relative;

	height: 45px;
	line-height: 45px;

	padding: 0 10px;

	font-size: 24px;

	text-align: center;

	background-color: #6d83a1;

	background-image: -webkit-gradient(linear, left top, left bottom, from(#b5c0ce), to(#6d83a1), color-stop(49%, #7f94b0), color-stop(50%, #7e93af));
	background-image: -moz-linear-gradient(top, #b5c0ce, #6d83a1, #7f94b0 49%, #7e93af 50%);

	color: #fff;

	text-shadow: #000 0px -1px 0px;
}

.w_button_custom input, .w_footer_custom .w_button_custom
{
	display: block;

	border-color: #375073;
	background-color: #405e87;

	background-image: -webkit-gradient(linear, left top, left bottom, from(#8aa1bf), to(#405e87), color-stop(50%, #5877a2));
	background-image: -moz-linear-gradient(top, #8aa1bf, #405e87);

	position: relative;

	border-width: 1px;
	border-style: solid;

	overflow: hidden;

	padding: 0 15px;

	font-size: 14px;
	font-weight: bold;

	white-space:nowrap;
	text-overflow:ellipsis;

	text-align: left;

	height: 34px;
	line-height: 32px;

	color: #fff;

	text-shadow: #000 0px -1px 0px;

	border-radius: 5px;

	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}

.w_footer_custom .w_button_custom
{
	display: inline;
	top: -2px;
	margin: 0 -4px;

	border-radius: 0;

	-webkit-border-radius: 0;
	-moz-border-radius: 0;
}

.w_footer_custom .w_button_custom.w_rounded_left
{
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;

	-webkit-border-top-left-radius: 5px;
	-webkit-border-bottom-left-radius: 5px;
	-moz-border-top-left-radius: 5px;
	-moz-border-bottom-left-radius: 5px;
}

.w_footer_custom .w_button_custom.w_rounded_right
{
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;

	-webkit-border-top-right-radius: 5px;
	-webkit-border-bottom-right-radius: 5px;
	-moz-border-top-right-radius: 5px;
	-moz-border-bottom-right-radius: 5px;
}

.w_footer_custom .w_button_custom.w_indice
{
	display: inline-block;
	height: 32px;
	padding: 0;
	overflow: visible;
}

.w_footer_custom .w_button_custom.w_indice input
{
	border: 0;
	height: 32px;
}

.w_footer_custom .w_button_custom.w_indice span
{
	background: #f00;
	border: 2px solid #fff;

	position: absolute;

	content: "1";

	height: 17px;
	min-width: 13px;

	line-height: 17px;

	padding: 0 2px;

	top: -11px;
	right: -11px;

	text-align: center;
	text-shadow: none;

	z-index: 100;

	border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
}
</pre>
<p>You just need a simple JS function to increment the number in the notification area:</p>
<pre>
toolbar =
{
	i:1,

	add: function()
	{
		this.i++;
		$('test_toolbar_1').innerHTML = this.i;
	}
};
</pre>
<p>You will probably need to adapt the JS code to your requirements (for instance, being able to decrement the number in the notification area&#8230;)</p>
<p>I hope this will help you</p>
<p>Jérôme</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://www.winktoolkit.org/discussion/topic/are-the-notifications-included-in-wink/#post-1823</guid>
					<title><![CDATA[Reply To: Are the Notifications included in wink ?]]></title>
					<link>http://www.winktoolkit.org/discussion/topic/are-the-notifications-included-in-wink/#post-1823</link>
					<pubDate>Fri, 30 Mar 2012 09:08:01 +0000</pubDate>
					<dc:creator>philipp</dc:creator>

					<description>
						<![CDATA[
						<p>Hey, super works fine.</p>
<p>I think it would be really helpfull if those code snippeds would be included in the KitchenSink demo since you can do so cool things with it <img src='http://www.winktoolkit.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
<p>Philipp</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

