Commits

Ralph Bean committed 9be25e7

Updated link to demo.

  • Participants
  • Parent commits 23597e4

Comments (0)

Files changed (4)

 
 Live Demo
 ---------
-Peep the `live demonstration <http://craftsman.rc.rit.edu/module?module=tw2.jqplugins.jqgrid>`_.
+Peep the `live demonstration <http://tw2-demos.threebean.org/module?module=tw2.jqplugins.jqgrid>`_.
 
 Links
 -----

File tw2/jqplugins/jqgrid/templates/jqgrid.html

             opts['pager_selector'] = opts['pager'];
             opts['pager'] = $(opts['pager'])
 
-            var pager_opts = ${w.pager_options}
-            var prmEdit = ${w.prmEdit};
-            var prmAdd = ${w.prmAdd};
-            var prmDel = ${w.prmDel};
-            var prmSearch = ${w.prmSearch};
-            var prmView  = ${w.prmView};
+            var pager_opts = ${w._pager_options}
+            var prmEdit = ${w._prmEdit};
+            var prmAdd = ${w._prmAdd};
+            var prmDel = ${w._prmDel};
+            var prmSearch = ${w._prmSearch};
+            var prmView  = ${w._prmView};
 
             grid.navGrid('#'+opts['pager_selector'], pager_opts,
                          prmEdit, prmAdd, prmDel, prmSearch, prmView)
-            <py:for each="btn in w.custom_pager_buttons">
+            <py:for each="btn in w._custom_pager_buttons">
                 .navButtonAdd('#'+opts['pager_selector'], ${btn})
             </py:for>;
         }
-        <py:if test="w._prmFilter">
-        var prmFilter = ${w.prmFilter};
+        <py:if test="w.__prmFilter">
+        var prmFilter = ${w._prmFilter};
         grid.jqGrid('filterToolbar', prmFilter);
         </py:if>
     }

File tw2/jqplugins/jqgrid/templates/jqgrid.mak

             var pager_opts = ${w.pager_options}
 
 
-            var prmEdit = ${w.prmEdit};
-            var prmAdd = ${w.prmAdd};
-            var prmDel = ${w.prmDel};
-            var prmSearch = ${w.prmSearch};
-            var prmView  = ${w.prmView};
+            var prmEdit = ${w._prmEdit};
+            var prmAdd = ${w._prmAdd};
+            var prmDel = ${w._prmDel};
+            var prmSearch = ${w._prmSearch};
+            var prmView  = ${w._prmView};
 
             grid.navGrid('#'+opts['pager_selector'], pager_opts,
                          prmEdit, prmAdd, prmDel, prmSearch, prmView)
-            % for btn in w.custom_pager_buttons:
+            % for btn in w._custom_pager_buttons:
                 .navButtonAdd('#'+opts['pager_selector'], ${btn})
             % endfor
 
         }
-		% if w._prmFilter:
-		var prmFilter = ${w.prmFilter};
+		% if w.__prmFilter:
+		var prmFilter = ${w._prmFilter};
 		grid.jqGrid('filterToolbar', prmFilter);
 		% endif
     }

File tw2/jqplugins/jqgrid/widgets/core.py

     pager_id = twc.Variable("options['pager'] placeholder", default=None)
 
     prmFilter = twc.Param("params to pass to jqgrid filter toolbar", default={})
-    _prmFilter = twc.Param("params to pass to jqgrid filter toolbar", default={})
     prmEdit   = twc.Param("params to pass to jqgrid pager [Edit]", default={})
     prmAdd    = twc.Param("params to pass to jqgrid pager [Add]", default={})
     prmDel    = twc.Param("params to pass to jqgrid pager [Del]", default={})
 
         self.pager_id = self.options.get('pager', None)
         super(jqGridWidget, self).prepare()
-        self.pager_options = encoder.encode(self.pager_options)
-        if self.prmFilter: self._prmFilter = True
-        self.prmFilter  = encoder.encode(self.prmFilter)
-        self.prmEdit    = encoder.encode(self.prmEdit)
-        self.prmAdd     = encoder.encode(self.prmAdd)
-        self.prmDel     = encoder.encode(self.prmDel)
-        self.prmSearch  = encoder.encode(self.prmSearch)
-        self.prmView    = encoder.encode(self.prmView)
-        self.custom_pager_buttons = map(encoder.encode, self.custom_pager_buttons)
+        self._pager_options = encoder.encode(self.pager_options)
+        self.__prmFilter = False
+        if self.prmFilter: self.__prmFilter = True
+        self._prmFilter  = encoder.encode(self.prmFilter)
+        self._prmEdit    = encoder.encode(self.prmEdit)
+        self._prmAdd     = encoder.encode(self.prmAdd)
+        self._prmDel     = encoder.encode(self.prmDel)
+        self._prmSearch  = encoder.encode(self.prmSearch)
+        self._prmView    = encoder.encode(self.prmView)
+        self._custom_pager_buttons = map(encoder.encode,
+                                         self.custom_pager_buttons)