File tree Expand file tree Collapse file tree 2 files changed +26
-17
lines changed Expand file tree Collapse file tree 2 files changed +26
-17
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Test coverage] ( https://codecov.io/gh/dev-javascript/tabs-more-button/graph/badge.svg?token=GT1LU074L2 )] ( https://codecov.io/gh/dev-javascript/tabs-more-button ) [ ![ NPM version] ( http://img.shields.io/npm/v/tabs-more-button.svg?style=flat-square )] ( http://npmjs.org/package/tabs-more-button ) [ ![ License] ( http://img.shields.io/npm/l/tabs-more-button.svg?style=flat-square )] ( LICENSE ) [ ![ npm download] ( https://img.shields.io/npm/dm/tabs-more-button.svg?style=flat-square )] ( https://npmjs.org/package/tabs-more-button ) [ ![ Build Status] ( https://travis-ci.org/ly-components/tabs-more-button.png )] ( https://travis-ci.org/ly-components/tabs-more-button )
4
4
5
- Responsive Tabs with more button
6
-
7
- Making tabs responsive by hiding overflow tabs except active tab
5
+ ` tabs-more-button ` is a lightweight library designed to enhance your tabbed interfaces by making them responsive. This package does not create or manage tabs, but it intelligently hides overflow tabs while ensuring that the active tab remains visible. Ideal for scenarios where space is limited
8
6
9
7
## Features
10
8
9
+ - Responsive
10
+
11
11
- ` Vertical ` support
12
12
13
13
- ` rtl ` support
@@ -70,7 +70,7 @@ document.getElementById('view-more-button').addEventListener('click', () => cons
70
70
71
71
## Rules
72
72
73
- - ` view more ` button should be sibling element of ` Tablist ` element
73
+ - ` view more ` button is required to display the hidden tabs and should be next sibling element of ` Tablist ` element
74
74
75
75
- ` tabs ` and ` view more ` button should be kept on same line
76
76
@@ -81,12 +81,12 @@ document.getElementById('view-more-button').addEventListener('click', () => cons
81
81
- buttonElement
82
82
83
83
- type : ` HtmlELement `
84
- - description : ` view more ` button (should be sibling element of ` Tablist ` element)
84
+ - description : ` view more ` button
85
85
86
86
- containerElement
87
87
88
88
- type : ` HtmlELement `
89
- - description : the first ancestor of ` view more ` button which its ` width|height ` is not relative to ` Tablist ` element but is relative to ` viewport `
89
+ - description : parent element of ` view more ` button and ` Tablist ` element
90
90
91
91
- tablistElement
92
92
@@ -101,7 +101,7 @@ document.getElementById('view-more-button').addEventListener('click', () => cons
101
101
102
102
- containerDisplay?
103
103
104
- - type : ` string `
104
+ - type : ` "flex" ` | ` "block" `
105
105
- description : ` display ` value for ` containerElement `
106
106
- default value : ` flex `
107
107
Original file line number Diff line number Diff line change 2
2
"name" : " tabs-more-button" ,
3
3
"version" : " 1.0.1" ,
4
4
"private" : false ,
5
+ "description" : " A lightweight library for making tabbed interfaces responsive by hiding overflow tabs while keeping the active tab visible." ,
6
+ "keywords" : [
7
+ " tabs" ,
8
+ " responsive" ,
9
+ " responsive tabs" ,
10
+ " more button" ,
11
+ " show more" ,
12
+ " view more" ,
13
+ " js" ,
14
+ " javascript" ,
15
+ " user-interface" ,
16
+ " web" ,
17
+ " overflow" ,
18
+ " active tab" ,
19
+ " tab management" ,
20
+ " horizontal tabs" ,
21
+ " vertical tabs" ,
22
+ " RTL"
23
+ ],
5
24
"author" : {
6
25
"name" : " dev-javascript" ,
7
26
"email" : " javascript.code.dev@gmail.com"
8
27
},
9
- "description" : " Responsive Tabs with more button" ,
10
28
"main" : " lib/cjs/api.js" ,
11
29
"module" : " lib/esm/api.js" ,
12
30
"repository" : {
67
85
" index.d.ts" ,
68
86
" __tests__"
69
87
],
70
- "keywords" : [
71
- " tabs" ,
72
- " responsive" ,
73
- " more-button" ,
74
- " show-more" ,
75
- " view-more" ,
76
- " js" ,
77
- " javascript"
78
- ],
79
88
"license" : " MIT" ,
80
89
"directories" : {
81
90
"lib" : " lib"
You can’t perform that action at this time.
0 commit comments