Skip to content

Commit

Permalink
Add force refresh setting
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinHui committed Sep 23, 2018
1 parent 034b8d9 commit e8b1478
Show file tree
Hide file tree
Showing 5 changed files with 348 additions and 277 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Demo: [nav-tabs](http://edwinhuish.oschina.io/multi-tabs/demo/index-simple.html)
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)
3. ```[data-title="new tab"]``` tab's tittle, if empty or undefined, tab's tittle will be link's text.
4. ```[data-url="index.html"]``` this parameter for the object not link.
5. ```[data-refresh="true"]``` for force refresh

### Initial Configuration ###
The following is the default configuration, you can modify as you want.
Expand All @@ -68,6 +69,7 @@ The following is the default configuration, you can modify as you want.
link : '.multitabs', //selector text to trigger multitabs.
iframe : false, //Global iframe mode, default is false, is the auto mode (for the self page, use ajax, and the external, use iframe)
class : '', //class for whole multitabs
refresh: false, //set to true for global force refresh tab
init : [ //tabs in initial
{
type :'', //content type, may be main | info, if empty, default is 'info'
Expand Down
2 changes: 2 additions & 0 deletions README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Demo: [nav-tabs](http://edwinhuish.oschina.io/multi-tabs/demo/index-simple.html)
2. ```[data-iframe="true"]``` 指定为iframe模式,当值为false的时候,为智能模式,自动判断(内网用ajax,外网用iframe)。缺省为false。
3. ```[data-title="new tab"]``` 设置后指定标签页的标题,默认读取链接字体。
4. ```[data-url="index.html"]``` 如果对象不是```<a>```链接,此值可以指定链接URL
5. ```[data-refresh="true"]``` 强制更新

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

This file was deleted.

Loading

0 comments on commit e8b1478

Please sign in to comment.