From: <lan...@us...> - 2003-07-21 05:49:51
|
Update of /cvsroot/webmacro/webmacro/macros/html In directory sc8-pr-cvs1:/tmp/cvs-serv11197/macros/html Added Files: menuStyles.wmm Log Message: Add macros missing required for execution and unit tests. --- NEW FILE: menuStyles.wmm --- #comment { menuStyles.wmm Macros for formatting html menus. The general approach is to support multiple levels, a selection on or off, and formatting on both edges. See http://apple.com and http://paypal.com for style examples used as templates for these menus. } ## tabbedMenu(menuData, formatProps) where: ## arg1 corresponds to the data elements of the menu ## arg2 provides style values for the menu #macro tabbedMenu($menuData, $formatProps) { $formatProps.tableSpec <tr> <td $formatProps.leftCellSpec> $formatProps.leftCellValue </td> <td $formatProps.leftCellSpec> <table $formatProps.contentTableSpec> <tr> <td $formatProps.contentCellSpec> #foreach $menuItem in $menuData.menuList { $menuItem } </td> </tr> <tr> <td $formatProps.contextCellSpec> #foreach $contextItem in $menuData.contextList { $contextItem } </td> </tr> </table> </td> <td $formatProps.rightCellSpec> $formatProps.rightCellValue </td> </tr> </table> } #macro singleTabbedMenu($menuData, $formatProps) { $formatProps.tableSpec <tr> <td $formatProps.leftCellSpec> $formatProps.leftCellValue </td> <td $formatProps.leftCellSpec> <table $formatProps.contentTableSpec> <tr> <td $formatProps.contentCellSpec> #foreach $menuItem in $menuData.menuList { $menuItem } </td> </tr> </table> </td> <td $formatProps.rightCellSpec> $formatProps.rightCellValue </td> </tr> </table> } |