Re: Applying JavaScript and CSS on f:select

2021-05-18 Thread Daniel Akua
i'll check if select2 and chosen have the pretty multi-select and the data binding that i need and update this thread On Friday, May 14, 2021 at 3:56:04 PM UTC+3 ullrich...@gmail.com wrote: > A more modern widget is available as > https://github.com/jenkinsci/select2-api-plugin > > It is curren

Re: Applying JavaScript and CSS on f:select

2021-05-14 Thread Ullrich Hafner
A more modern widget is available as https://github.com/jenkinsci/select2-api-plugin It is currently only available on the client side but it shouldn’t be hard to add support for the Jenkins form concept so that it can be used in server side UI

Re: Applying JavaScript and CSS on f:select

2021-05-14 Thread 'Björn Pedersen' via Jenkins Developers
>From his examples I guess he wants somethig like a choosen.js multiselect for a mulit-choice lists like in extend-choice plugin. Maybe take a look at https://plugins.jenkins.io/chosen/ (although rather antique...) Björn ga...@gavinmogan.com schrieb am Freitag, 14. Mai 2021 um 05:02:56 UTC+2:

Re: Applying JavaScript and CSS on f:select

2021-05-13 Thread 'Gavin Mogan' via Jenkins Developers
I think you need to give concrete examples (I've gotten in the habit of saying vague questions give vague answers) Can you list the things you've tried. What did happen? and what you wanted to happen instead? Gavin On Wed, May 12, 2021 at 11:56 PM Daniel Akua wrote: > It's not just CSS, it's J

Re: Applying JavaScript and CSS on f:select

2021-05-12 Thread Daniel Akua
It's not just CSS, it's JavaScript as well. the element ignores it. If i add id to f:select, it is removed in the html. if i use the auto generated name (_.XYZ) i can find the element and apply the changes but then i lose the binding. I need to find a way to have both the binding and the pretty

Re: Applying JavaScript and CSS on f:select

2021-05-12 Thread Tim Jacomb
Why can't you apply CSS to it? Are you missing attributes? Do you need to change the markup? Better to avoid forking core widgets if you can as then plugins get out of sync when we make changes in core, and it was a real pain when we did the form modernisation work, and any plugins that fork the

Re: Applying JavaScript and CSS on f:select

2021-05-12 Thread Ullrich Hafner
They only way I see is to copy the select.jelly (https://github.com/jenkinsci/jenkins/tree/master/core/src/main/resources/lib/form ) into your plugin and try to rewrite it so that it works with your JS and CSS.

Re: Applying JavaScript and CSS on f:select

2021-05-12 Thread Daniel Akua
I am using this element in a "build environment" step in the configuration page. And I must use the f:select because i need the binding. On Tuesday, May 11, 2021 at 10:48:59 PM UTC+3 ullrich...@gmail.com wrote: > Where do you want to use the element? In one of your views? Or in a job > configur

Re: Applying JavaScript and CSS on f:select

2021-05-11 Thread Ullrich Hafner
Where do you want to use the element? In one of your views? Or in a job configuration page? It is not required to use a f:select. Can’t you directly use the select or what is missing in that case (data binding?)? > Am 10.05.2021 um 11:37 schrieb Daniel Akua : > > Hi all, > In my plugin I have

Applying JavaScript and CSS on f:select

2021-05-10 Thread Daniel Akua
Hi all, In my plugin I have a element with the multiple attribute (multi-select) that is changing according to another field. My problem is that I want to apply JavaScript and CSS to it to make it look better than the standard multi-select element. it currently looks like this: [image: before.p