Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Commit d4e6fc7

Browse files
author
Gregor Adams
committed
eventHook for tabs
1 parent d47d081 commit d4e6fc7

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

examples/.meteor/versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ [email protected]
1212
1313
1414
15-
codefights:[email protected].7_2
15+
codefights:[email protected].8
1616
1717
1818

examples/routing/paper-tabs/paper-tabs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ <h1>Paper Tabs</h1>
33
<div>
44

55
{{#PaperTabs selected=0 className="paper-tabs-0"}}
6-
{{#PaperTab className="paper-tab-0"}}
6+
{{#PaperTab className="paper-tab-0" eventHook="tabEvent"}}
77
one
88
{{/PaperTab}}
99
{{#PaperTab className="paper-tab-0"}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
if (Meteor.isClient) {
2+
Template.paperTabs.events(
3+
{
4+
'click [event-hook=tabEvent]': function(e,instance){
5+
console.log('>>>\nclicked tab on: ', instance,'\n<<<')
6+
}
7+
}
8+
);
9+
}

lib/paper-elements/PaperTab/PaperTab.tpl.jade

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
paper-tab(class=className
22
role="tab"
33
aria-disabled="false"
4-
link=link)
4+
link=link
5+
event-hook=eventHook)
56
+PaperRipple(className="paper-tab" id="ink")
67
div(class="tab-content paper-tab" flex auto center-center vertical layout)
78
if link

package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package.describe({
22
name: 'codefights:blaze-material-ui',
3-
version: '0.1.7_2',
3+
version: '0.1.8',
44
// Brief, one-line summary of the package.
55
summary: 'Material design components for blaze',
66
// URL to the Git repository containing the source code for this package.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blaze-material-ui",
3-
"version": "0.1.7_2",
3+
"version": "0.1.8",
44
"description": "blaze components for material design",
55
"main": "Gulpfile.js",
66
"directories": {

0 commit comments

Comments
 (0)