32 |
33 |
34 |
35 |
56 | ```
57 |
58 | ### Customized CSS for styling
59 | ```css
60 | .tinytabs .tabs {
61 | margin-left: 15px;
62 | display: flex;
63 | flex-flow: row wrap;
64 | }
65 | .tinytabs .tabs .tab .close {
66 | padding-left: 5px;
67 | }
68 | .tinytabs .tabs .tab {
69 | margin: 0 3px 0 0;
70 | background: #e1e1e1;
71 | display: block;
72 | padding: 6px 15px;
73 | text-decoration: none;
74 | color: #666;
75 | font-weight: bold;
76 | border-radius: 3px 3px 0 0;
77 | }
78 | .tinytabs .section {
79 | background: #f1f1f1;
80 | overflow: hidden;
81 | padding: 15px;
82 | clear: both;
83 | border-radius: 3px;
84 | }
85 | .tinytabs .tab.sel {
86 | background: #f1f1f1;
87 | color: #333;
88 | text-shadow: none;
89 | }
90 | ```
91 |
92 | ## Options
93 | | Properties | Description
94 | |--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
95 | | anchor | false (default) or true. If enabled, when a tab is clicked, it's id is set in url's fragment so that the tab is retained on page reloads. |
96 | | hideTitle | false (default) or true. Hide the title element within section elements. |
97 | | sectionClass | Section element's class. Default is section. |
98 | | tabsClass | Tab (ul) container's class. Default is tabs. |
99 | | tabClass | Individual tab's (li) class. Default is tab. |
100 | | titleClass | Title element's tag. Default is title. |
101 | | onBefore | function(id, tab). Callback function that gets evaluated before a tab is activated. The first arg is the id of the tab and the second is the DOM element of the tab. |
102 | | onAfter | function(id, tab). Callback function that gets evaluated after a tab is activated. The first arg is the id of the tab and the second is the DOM element of the tab. |
103 | | onClose | function(id). Callback function that gets evaluated while closing the tab. The argument is the id of the tab. |
104 |
105 |
106 | Please find out tinytabs wrapper for [`Reactjs`](https://github.com/mevinoth/r-tiny-tabs)
107 |
108 | MIT License.
109 |
--------------------------------------------------------------------------------