Page 1 of 1

Themeable Button Global style ?

Posted: Mon Jan 28, 2019 3:56 pm
by digizar
How -if- is it possible, to define the layout/appearence of a Themeable Button through a global style (CSS).
So far it seems to be possible to work on any individual button only. Or do I miss something?
Thanks for enlightenment.
Image

Re: Themeable Button Global style ?

Posted: Mon Jan 28, 2019 5:08 pm
by Pablo
The themable button uses jQuery UI , you can change the global style in the jQuery UI Theme manager.

Re: Themeable Button Global style ?

Posted: Tue Feb 05, 2019 5:14 pm
by digizar
The themable button uses jQuery UI , you can change the global style in the jQuery UI Theme manager.
Thanks, that works great.
But that is valid for a page with themable buttons, not for an object on a page.
I'd need it for a simple (link)button, definable with a global css, independend of jquery.
I can't even find such simple button, based on global css, and carrying a link.
I checked the available menues whether such button would exist, but none of them seem to be appropriate for my purpose.

What I did, may be I don't have enough knowledge?
https://blumenfotos.net/inhalt.html
An active page (left side menu) is indicated by a green button, once you click on a button, that page will be shown.
And that single green button will 'overlay' the base button (defined in a master page).
That green button is a simple button defined for each button seperately, not global css.
It would be disaster later, if that button-layout would change. I'd have to access each button idividually. And there are many. That's - lets say 'uncomfortable'. That is the purpose of css, as far as I understand at least.

I see the 'active' state in the qjuery definition, and I can define that layout. Sure also for the state 'active'.
But it does not help, because I can't tell the button to be an active one - on a particular page.
Also the jquery does not allow me to specify a blur (around a button) -btw-.
One thing of use would be to explicitely set such button to the state 'active' on a particular page, but how?
For that purpose it would be nice to make the jquery assignable to an individual entity (Layer, Menu, ...). And not just to the page.

May be, I miss some information.
So any help would be nice, no complete lessen required, just a hint.
Keep in mind, after more than 50 years in computer development, I'm not completely 'blond'. But I'm retired - and I have time time time to figure things out. Sometimes though it becomes frustrating -after skimming the forum-, and it just makes more sense to ask, others my also benefit from it.

Thanks in advance. Tot ziens.

Btw-I: I can not change my avatar, even if I keep the contraints (sizes and volumn).
I really feel pretty stupid, but it does the hell not work :(
Must I mail you the image - and you insert it? :lol:

Btw-II: It would be wise to open a link from here in a new tab/page, not in the samve page as this forum

Re: Themeable Button Global style ?

Posted: Tue Feb 05, 2019 5:53 pm
by BaconFries
@digizar You cannot upload files to the forum due to security restrictions you can of course use a third party service such as 'Gravatar' to set an avatar in your profile.

Re: Themeable Button Global style ?

Posted: Tue Feb 05, 2019 6:12 pm
by Pablo
The themeable button is part of the jQuery UI widgets, so that is why it is using jQuery UI themes and not styles.

There has never been a request for a styleable link button, but alternatively you can use a form button and use events to trigger links.

Re: Themeable Button Global style ?

Posted: Tue Feb 05, 2019 8:35 pm
by digizar
but alternatively you can use a form button and use events to trigger links.
I figured that. Events ... onklick ... link ... target.
Where I miss the selection about what should happen with the traget, new page (_blank), same page, ...
No selection, and no manual entry possible. No matter what is selected in Link to:
Image

Re: Themeable Button Global style ?

Posted: Tue Feb 05, 2019 9:04 pm
by Pablo
I'm sorry, links via events do not support targets.

Re: Themeable Button Global style ?

Posted: Wed Feb 06, 2019 2:08 am
by digizar
too bad :(

Re: Themeable Button Global style ?

Posted: Wed Feb 06, 2019 12:02 pm
by digizar
too bad :(
Any solution? Any proposal? Any workaround?

Works perfect, a simple button with all the options.
Simple useable everywhere.
Image

Re: Themeable Button Global style ?

Posted: Wed Feb 06, 2019 12:09 pm
by Pablo
A possible workaround is to use JavaScript (triggered via events).

Code: Select all

window.open(URL, '_blank')
More information:
https://www.w3schools.com/jsref/met_win_open.asp

Also, there are many other navigation tools:
http://wysiwygwebbuilder.com/navigation.html

Re: Themeable Button Global style ?

Posted: Wed Feb 06, 2019 4:45 pm
by digizar
Thanks, very much !
'll give it a try. Some already tried, but all those came to a 'dead end' so far.
But I've time to study ALL proposals.
Will report about the outcome.

The jquery does not allow to specify a 'target' option, as said.
Else it is very convenient.

To be expected to implement such option about the 'target' spec? Any intention?
In that case I'd stay with the existing version, that a new page is replaceing the existing one.

Anyway, I'm just curious, why doesn't such simple link button exist? It exists and works somewhere else.
Can't be so hard to implement it.

Re: Themeable Button Global style ?

Posted: Wed Feb 06, 2019 4:50 pm
by BaconFries
Carrying on with Pablos reply see the following that may be of help.
https://stackoverflow.com/questions/157 ... javascript

Re: Themeable Button Global style ?

Posted: Wed Feb 06, 2019 5:03 pm
by Pablo
Anyway, I'm just curious, why doesn't such simple link button exist?
Because no one has ever asked for it before.
Thousands of other suggestions have been asked and implemented but not this one...
To be expected to implement such option about the 'target' spec? Any intention?
You can post suggestions here:
viewforum.php?f=28
If other users find it useful too, then it may be implemented in a future release