11< div id ="settings-tilelayout "> </ div >
22< ul id ="plan-cards-menu ">
3- < li > < span id =' del '> </ span > Delete </ li >
3+ < li > < span class =' file-icon '> </ span > Get Details </ li >
44</ ul >
55< div id ="dialog "> </ div >
6+ < div id ="detailsDialog "> </ div >
67
78< script id ="info-header-template " type ="text/html ">
89 < button id = "accountButton" > Account</ button >
4041< script id ="billing-template " type ="text/html ">
4142 < div class = "formTitle" class = "formTitle" > CHANGE YOUR PLAN</ div >
4243 < div id = "cards-container" >
43- < div class = "k-card k-card-type-rich" onclick = "selectCard(event)" >
44+ < div class = "k-card k-card-type-rich" onclick = "selectCard(event)" data-title = "Suitable for exploring the product" >
4445 < div class = "k-card-header plan-card" >
4546 < h5 class = "k-card-title plan-title" > Starter</ h5 >
4647 < span class = "template-menu" >
@@ -56,7 +57,7 @@ <h5 class="k-card-title plan-title">Starter</h5>
5657 < div class = "k-card-footer plan-footer" > STARTER PLAN FOR INDIVIDUALS</ div >
5758 </ div >
5859
59- < div class = "k-card k-card-type-rich" onclick = "selectCard(event)" >
60+ < div class = "k-card k-card-type-rich" onclick = "selectCard(event)" data - title = "Great options for small teams" >
6061 < div class = "k-card-header plan-card" >
6162 < h5 class = "k-card-title plan-title" > Team</ h5 >
6263 < span class = "template-menu" >
@@ -69,7 +70,7 @@ <h5 class="k-card-title plan-title">Team</h5>
6970 < div class = "k-card-body body-label" > $20 / Month < / d i v >
7071 < div class = "k-card-footer plan-footer" > COLLABORATE UP TO 16 PEOPLE</ div >
7172 < / d i v >
72- < div class = "k-card k-card-type-rich" onclick = "selectCard(event)" >
73+ < div class = "k-card k-card-type-rich" onclick = "selectCard(event)" data-title = "Special discount available for higher number of accounts" >
7374 < div class = "k-card-header plan-card" >
7475 < h5 class = "k-card-title plan-title" > Enterprise</ h5 >
7576 < span class = "template-menu" >
@@ -146,6 +147,7 @@ <h5 class="k-card-title plan-title">Enterprise</h5>
146147</ script >
147148
148149< script >
150+ var cardContent ;
149151 var settingsTileLayout = $ ( "#settings-tilelayout" ) . kendoTileLayout ( {
150152 containers : [
151153 {
@@ -176,7 +178,7 @@ <h5 class="k-card-title plan-title">Enterprise</h5>
176178 columns : 3 ,
177179 columnsWidth : "33%" ,
178180 rowsHeight : "auto" ,
179- reorderable : true ,
181+ reorderable : false ,
180182 resizable : true ,
181183 } ) . data ( "kendoTileLayout" ) ;
182184
@@ -197,15 +199,23 @@ <h5 class="k-card-title plan-title">Enterprise</h5>
197199 }
198200
199201 function createConstantWidgets ( ) {
202+
203+ $ ( "#detailsDialog" ) . kendoDialog ( {
204+ title : "Plan Details" ,
205+ content : "Form has been submitted!" ,
206+ visible : false
207+ } ) ;
208+
200209 $ ( "#plan-cards-menu" ) . kendoContextMenu ( {
201- target : "#settings-tilelayout " ,
210+ target : "#cards-container " ,
202211 filter : ".template-menu" ,
203212 showOn : "click" ,
204213 select : function ( e ) {
205- e . target . closest ( ".k-card" ) . remove ( ) ;
214+ $ ( "#detailsDialog" ) . data ( "kendoDialog" ) . content ( cardContent ) . open ( ) ;
206215 } ,
207216 activate : function ( e ) {
208- kendo . ui . icon ( $ ( "#del" ) , { icon : 'trash' } ) ;
217+ cardContent = $ ( e . target ) . closest ( ".k-card" ) . attr ( "data-title" ) ;
218+ kendo . ui . icon ( $ ( ".file-icon" ) , { icon : 'file-txt' } ) ;
209219 }
210220 } ) ;
211221
@@ -738,9 +748,6 @@ <h5 class="k-card-title plan-title">Enterprise</h5>
738748 }
739749
740750 kendo . ui . icon ( $ ( "#globe" ) , { icon : 'globe' } ) ;
741- // kendo.ui.icon($("#del"), { icon: 'trash' });
742-
743-
744751
745752</ script >
746753
0 commit comments