0

Window Caption Buttons ZK 8.+

asked 2018-10-23 17:46:25 +0800

IngoB gravatar image IngoB flag of Germany
256 6

Hey,

I tried to add a new button (Help) to the window caption like the maximize button or the close button.

I found this ZK Fiddle. This is basically what I want, but the two buttons "maximize" and "close" will be swaped by this css solution :(

image description

Any idea how to solve this?

Thank you for your help

P.S.: I'm using ZK 8.0.5

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-10-26 11:05:50 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2018-10-26 11:06:38 +0800

since the example already uses CSS-flex you can use the order-attribute to change the order. (https://developer.mozilla.org/en-US/docs/Web/CSS/order)

e.g.:

        .z-window-minimize {
            order: 1;
        }
        .z-window-maximize {
            order: 2;
        }
        .z-window-close {
            order: 3;
        }

updated example: http://zkfiddle.org/sample/3gvkalg/457-custom-buttons-in-window-caption-7-0-2

link publish delete flag offensive edit

Comments

Wow, thank you! That's exactly what I wanted :)

IngoB ( 2018-10-26 15:42:33 +0800 )edit

Danke fuer die Rueckmeldung und Schoenes Wochendende! Robert

cor3000 ( 2018-10-26 18:59:33 +0800 )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
2 followers

RSS

Stats

Asked: 2018-10-23 17:46:25 +0800

Seen: 14 times

Last updated: Oct 26 '18

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