<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Saki's Blog &#187; button</title>
	<atom:link href="http://blog.extjs.eu/tag/button/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.extjs.eu</link>
	<description>For good of all productive developers</description>
	<lastBuildDate>Sun, 21 Nov 2010 01:36:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Button With Buffered Clicks</title>
		<link>http://blog.extjs.eu/know-how/button-with-buffered-clicks/</link>
		<comments>http://blog.extjs.eu/know-how/button-with-buffered-clicks/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 17:56:51 +0000</pubDate>
		<dc:creator>Saki</dc:creator>
				<category><![CDATA[Know-how]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[extjs]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blog.extjs.eu/?p=12</guid>
		<description><![CDATA[<br/>My users are used to double-clicks to such a degree that they double-click everything, also buttons. This has created the problem with buttons that add records to grid as always two records were added. Here is handling:

1
2
3
4
5
6
7
8
9
10
11
this.toolbar.add&#40;&#123;
   id:this.id + '-btn-add-record'
  ,text:this.addText
  ,tooltip:this.addRecordText
  ,iconCls:'icon-plus'
  ,disabled:true
  ,listeners:&#123;
    [...]]]></description>
			<content:encoded><![CDATA[<br/><p>My users are used to double-clicks to such a degree that they double-click everything, also buttons. This has created the problem with buttons that add records to grid as always two records were added. Here is handling:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">toolbar</span>.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
   id<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">id</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'-btn-add-record'</span>
  <span style="color: #339933;">,</span>text<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">addText</span>
  <span style="color: #339933;">,</span>tooltip<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">addRecordText</span>
  <span style="color: #339933;">,</span>iconCls<span style="color: #339933;">:</span><span style="color: #3366CC;">'icon-plus'</span>
  <span style="color: #339933;">,</span>disabled<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">true</span>
  <span style="color: #339933;">,</span>listeners<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>
     scope<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">this</span>
    <span style="color: #339933;">,</span>click<span style="color: #339933;">:</span><span style="color: #009900;">&#123;</span>fn<span style="color: #339933;">:</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">onTbarClick</span>.<span style="color: #660066;">createDelegate</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'add'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> buffer<span style="color: #339933;">:</span><span style="color: #CC0000;">200</span><span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.extjs.eu/know-how/button-with-buffered-clicks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

