Skip to content

Commit e8ad75a

Browse files
committed
feat: build tooltip cell
1 parent f8b776c commit e8ad75a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.icon.material-icons.tooltip-icon{ :id => tooltip_id } help
2+
.mdl-tooltip{ "data-mdl-for" => tooltip_id }
3+
= @options[:tooltip]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module Plugins
2+
module Core
3+
class TooltipCell < Plugins::Core::Cell
4+
def show
5+
render
6+
end
7+
8+
private
9+
10+
def tooltip_id
11+
@options[:id].parameterize('_')
12+
end
13+
end
14+
end
15+
end

0 commit comments

Comments
 (0)