0

Borderlayout collapsible not showing title when colled

asked 2013-12-11 20:47:59 +0800

gyowanny gravatar image gyowanny
283 1 2 6

Hi,

I have a border layout component where the North region is collapsible. When I click on the North's title button to hide it the title is not being displayed anymore.

I have already tried the suggested workaround in this thread but it didn't work as I want since I need to keep displaying the title in the bar and not only as a tooltip text.

Any clues?

Thank you,

Gyo

delete flag offensive retag edit

3 Answers

Sort by ┬╗ oldest newest most voted
1

answered 2014-01-09 03:52:37 +0800

neillee gravatar image neillee flag of Taiwan
1692 1 5
https://plus.google.com/u...

The workaround can be changed slightly to keep displaying the title in the collapsed bar.

jq("@west,@north,@east,@south").each(function() {
    var zLayout = zk.Widget.$(this);
    if (zLayout.$n("cap")!=null){
        var word = jq(zLayout.$n("cap")).text();
        jq(zLayout.$n("colled")).append(word);
    }
});
link publish delete flag offensive edit
0

answered 2014-01-13 19:20:36 +0800

gyowanny gravatar image gyowanny
283 1 2 6

updated 2014-01-13 19:22:29 +0800

Hi Neillee,, Worked like a charm!!! Thank you!!!!

Just one minor adjustment: How to keep the same style as the expanded title bar?

Thanks,

Gyo

link publish delete flag offensive edit
0

answered 2017-06-12 08:24:58 +0800

onsir gravatar image onsir
132 2

hi, Please share how to use i zul page ?

i also need it, this my code http://forum.zkoss.org/question/105423/show-title-in-borderlayout-north/

thanks

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-12-11 20:47:59 +0800

Seen: 40 times

Last updated: Jun 12 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More