0

Tabbox and Notifications issue

asked 2013-06-27 19:30:57 +0800

guiye gravatar image guiye
28 1

updated 2013-06-28 09:13:15 +0800

cor3000 gravatar image cor3000
4466 2 7
ZK Team

Hi,

I have an issue with Client.showNotification and Tabs: if I attach a notification to a non selected tab this notification bubble is attached to an undefined place.

This happens when the notification target is inside of a non selected tab. One solution could be an

Bellw is the zul to test. first do click on "test notification ok" button then click on "test notification fail" button.

<zk>
    <window height="300px" width="250px">
        <tabbox>
            <tabs>
                <tab label="tab 1" />
                <tab label="tab 2" />
            </tabs>
            <tabpanels>
                <tabpanel>
                    <label value="Textbox" />
                    <textbox id="textbox" />
                    <button label="test notification ok">
                        <attribute name="onClick"><![CDATA[
                            Clients.showNotification("textbox error!", "info", textbox, "end_center", 0, true);
                        ]]></attribute>
                    </button>
                </tabpanel>
                <tabpanel>
                    <button label="test notification fail">
                        <attribute name="onClick"><![CDATA[
                            Clients.showNotification("textbox error!", "info", textbox, "end_center", 0, true);
                        ]]></attribute>
                    </button>
                </tabpanel>
            </tabpanels>
        </tabbox>
    </window>
</zk>

thank you.

delete flag offensive retag edit
Be the first one to answer this question!
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
2 followers

RSS

Stats

Asked: 2013-06-27 19:30:57 +0800

Seen: 12 times

Last updated: Jun 28 '13

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