EasyUI Forum
April 28, 2024, 01:59:37 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how to cancel a select in tabs?  (Read 11227 times)
korenanzo
Guest
« on: November 17, 2014, 11:03:25 AM »

Hi all,
I need to decide wether or not allow the selection of a panel in a tabs.

is it possible to add a "cancel" system (like "return false" ) into the onSelect ?

the onBeforeClose  has such a system, but Close happens only when a tab is closed (destroyed), not changed .

thanks,
RIc
« Last Edit: November 18, 2014, 03:24:04 AM by korenanzo » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: November 19, 2014, 01:33:07 AM »

This feature will be supported in next version. The preview tabs plugin can be downloaded from http://www.jeasyui.com/easyui/plugins/jquery.tabs.js. The example is also available from http://jsfiddle.net/csbt4r45/

Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #2 on: April 23, 2015, 11:23:11 PM »

hello, is this method already implemented in newest easy ui?
especially about onBeforeSelect refer to this http://www.jeasyui.com/forum/index.php?topic=4038.msg10319#msg10319

because already tried to use this method and come with fail results.

here the fiddle:
http://jsfiddle.net/aswzen/mus4rvw0/2/

Thank you
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: April 24, 2015, 12:34:00 AM »

Please use the panel's 'onBeforeOpen' event instead, try this updated example http://jsfiddle.net/mus4rvw0/3/
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!