Skip to content

Commit e8b1478

Browse files
author
EdwinHui
committed
Add force refresh setting
1 parent 034b8d9 commit e8b1478

File tree

5 files changed

+348
-277
lines changed

5 files changed

+348
-277
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Demo: [nav-tabs](http://edwinhuish.oschina.io/multi-tabs/demo/index-simple.html)
5959
2. ```[data-iframe="true"]``` iframe mode, default is false. While false, is the auto mode (for the self page, use ajax, and the external, use iframe)
6060
3. ```[data-title="new tab"]``` tab's tittle, if empty or undefined, tab's tittle will be link's text.
6161
4. ```[data-url="index.html"]``` this parameter for the object not link.
62+
5. ```[data-refresh="true"]``` for force refresh
6263

6364
### Initial Configuration ###
6465
The following is the default configuration, you can modify as you want.
@@ -68,6 +69,7 @@ The following is the default configuration, you can modify as you want.
6869
link : '.multitabs', //selector text to trigger multitabs.
6970
iframe : false, //Global iframe mode, default is false, is the auto mode (for the self page, use ajax, and the external, use iframe)
7071
class : '', //class for whole multitabs
72+
refresh: false, //set to true for global force refresh tab
7173
init : [ //tabs in initial
7274
{
7375
type :'', //content type, may be main | info, if empty, default is 'info'

README_cn.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Demo: [nav-tabs](http://edwinhuish.oschina.io/multi-tabs/demo/index-simple.html)
5858
2. ```[data-iframe="true"]``` 指定为iframe模式,当值为false的时候,为智能模式,自动判断(内网用ajax,外网用iframe)。缺省为false。
5959
3. ```[data-title="new tab"]``` 设置后指定标签页的标题,默认读取链接字体。
6060
4. ```[data-url="index.html"]``` 如果对象不是```<a>```链接,此值可以指定链接URL
61+
5. ```[data-refresh="true"]``` 强制更新
6162

6263
### 初始化配置 ###
6364
下面这些为默认配置,可以自行修改
@@ -67,6 +68,7 @@ Demo: [nav-tabs](http://edwinhuish.oschina.io/multi-tabs/demo/index-simple.html)
6768
link : '.multitabs', //触发multitabs的selector text,注意需要有".","#"等
6869
iframe : false, //iframe模式的总局设置。当值为false的时候,为智能模式,自动判断(内网用ajax,外网用iframe)。缺省为false。
6970
class : '', //主框架的class
71+
refresh: false, //全局强制更新
7072
init : [ //需要在初始加载的tab
7173
{
7274
type :'', //标签页的类型,有 main | info,缺省为 info

css/style.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)