For one of my projects I need printable tabs; while considering if I want to implement this as a separate widget subclassing either your or Yii's official tab widget, I thought I'd just ask if you are interested in this as well.
The functionality I envision is as follows:
Each tab header is duplicated in the tab-content as well, but with a printing only class .visible-print-block.
Each tab navigation element gets a class .hidden-print
Each tab content div gets a .visible-print-block class.
This way when printing tabs, the navigation will be hidden and each tab will be printed with the appropriate header line.
This could all be toggled with a boolean configuration option for the tabs widget.
If you'd like this in your tab widget I can make a PR!
Hey Kartik,
For one of my projects I need printable tabs; while considering if I want to implement this as a separate widget subclassing either your or Yii's official tab widget, I thought I'd just ask if you are interested in this as well.
The functionality I envision is as follows:
.visible-print-block
..hidden-print
.visible-print-block
class.This way when printing tabs, the navigation will be hidden and each tab will be printed with the appropriate header line.
This could all be toggled with a boolean configuration option for the tabs widget.
If you'd like this in your tab widget I can make a PR!