Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial version. Allow to disable any select option with :disable #25

Merged

Conversation

ivarmu
Copy link

@ivarmu ivarmu commented Jul 24, 2019

Just to let to show disabled options at SELECT (Single select, Multi select, radio buttons and check boxes)
The syntax provided is the same one used to select one or more options:
["A", "B:selected", "C:disabled"]

@kinow
Copy link
Member

kinow commented Jul 24, 2019

Oh, that sounds interesting! Code-wise it looks good, will need to run the plugin later to see if everything works fine (cc @imoutsatsos), but looks like a good issue for the next release. Thanks @ivarmu !

@kinow
Copy link
Member

kinow commented Jul 24, 2019

(the code actually looks really good! Thanks for the comments and tests!)

</j:invokeStatic>
<j:choose>
<j:when test="${selected}">
<f:option selected="${selected}" value="${escapedKey}">${escapedValue}</f:option>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, funny, we didn't have that for selected before.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it works!

Copy link
Member

@kinow kinow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worked for me. Now just up for @imoutsatsos to have a go as well, but otherwise good to be merged IMO.

Thanks again @ivarmu

@ivarmu
Copy link
Author

ivarmu commented Sep 5, 2019

Hi @imoutsatsos, could you please review that PR?

Thanks in advance!

@kinow
Copy link
Member

kinow commented Sep 11, 2019

@ivarmu I think he might be busy, but I did some testing and it worked. Will merge and release over the weekend, so you should have this new feature next week 👍

@kinow kinow merged commit fe1c0be into jenkinsci:master Sep 12, 2019
@kinow
Copy link
Member

kinow commented Sep 12, 2019

Merged, releasing probably tomorrow night, or Saturday NZ time. Thanks for your PR @ivarmu ! Check out your plugin updates on Monday 👍

@SciMan72
Copy link

Hi! I want to have a selected and disabled elements. But when I try to combine both options, it doesn't work. Is there such possibility?

@ivarmu
Copy link
Author

ivarmu commented Mar 18, 2020 via email

@SciMan72
Copy link

SciMan72 commented Mar 18, 2020 via email

@ivarmu
Copy link
Author

ivarmu commented Mar 20, 2020 via email

@ivarmu
Copy link
Author

ivarmu commented Mar 22, 2020

@SciMan72: I've created a new for that: PR #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants