Skip to content

Mgbbs/hidden for checkbox render mode #13014

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

Merged
merged 4 commits into from
Aug 26, 2019

Conversation

mgbbs
Copy link
Contributor

@mgbbs mgbbs commented Aug 9, 2019

Summary of the changes

  • Added configurable CheckBox hidden input render mode

Addresses #12833

@dnfclas
Copy link

dnfclas commented Aug 9, 2019

CLA assistant check
All CLA requirements met.

@Eilon Eilon added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Aug 9, 2019
@mgbbs
Copy link
Contributor Author

mgbbs commented Aug 13, 2019

@Eilon is there an area with resources to help resolve build issues? I'm seeing an npm failure trying to resolve @mirosoft/signalr package, plus a few xunit tests are failing but I can't view the log details. All of the errors are unrelated to any of the changes in this pull request. I've tried some literal searches but nothing useful has turned up.

@Eilon
Copy link
Contributor

Eilon commented Aug 13, 2019

Hi @mgbbs I actually don't work on this project anymore, I just help with labeling issues 😄

I'm tagging @aspnet/build and @mkArtakMSFT who should be able to help more with the build issues you're seeing (as well as reviewing the PR).

@mkArtakMSFT mkArtakMSFT requested review from dougbu and pranavkm August 14, 2019 02:33
@pranavkm pranavkm added this to the 5.0.0-alpha1 milestone Aug 14, 2019
@pranavkm
Copy link
Contributor

@mgbbs @BrennanConroy fixed the npm issue fairly recently. I think rebasing on master would help.
The test failures are a known issues and can be ignored (they're marked as flaky and will not fail the build).

@BrennanConroy
Copy link
Member

The fix still needs to be merged to master which could be later today or tomorrow

@mgbbs
Copy link
Contributor Author

mgbbs commented Aug 14, 2019

Thanks guys, I assume it's commit e5485e9 so I'll watch for that to hit master then rebase.

// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.AspNetCore.Mvc.Rendering
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest this should be in the same namespace as HtmlHelperOptions: Microsoft.AspNetCore.Mvc.ViewFeatures but defer to @pranavkm here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the quick response @dougbu. I initially put it in the .Rendering namespace to follow suit with Html5DateRenderingMode and TagRenderMode, but will also defer to @pranavkm.

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems OK to me. We'll do an API review in 5.0 and we can revisit this at that point.

@mgbbs mgbbs force-pushed the mgbbs/hidden-for-checkbox-render-mode branch from 9221168 to bc585c5 Compare August 15, 2019 19:10
@mgbbs
Copy link
Contributor Author

mgbbs commented Aug 16, 2019

@pranavkm this is rebased and updated per @dougbu's comments, and built successfully.

@dougbu
Copy link
Contributor

dougbu commented Aug 16, 2019

Looks good to me. Over to you @pranavkm, especially on the namespace choice for the new enum

@mkArtakMSFT
Copy link
Contributor

@dougbu please sign off, if you're done and happy with it. Let's get @pranavkm 's signoff too then to merge this.

Copy link
Contributor

@pranavkm pranavkm left a comment

Choose a reason for hiding this comment

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

Thanks for your PR @mgbbs

// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

namespace Microsoft.AspNetCore.Mvc.Rendering
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems OK to me. We'll do an API review in 5.0 and we can revisit this at that point.

@pranavkm pranavkm merged commit 90e89e9 into dotnet:master Aug 26, 2019
@pranavkm pranavkm modified the milestones: blazor-wasm, 5.0.0-preview1 Aug 26, 2019
@Tabgyn
Copy link

Tabgyn commented Aug 15, 2020

Is it available in .NET Core 3.1? How do I set this enumerator for all my application?

@mgbbs
Copy link
Contributor Author

mgbbs commented Aug 15, 2020

Is it available in .NET Core 3.1? How do I set this enumerator for all my application?

@Tabgyn looks like it'll be available in .NET 5. It will be configured like so:

            services.Configure<MvcViewOptions>(options =>
            {
                options.HtmlHelperOptions.CheckBoxHiddenInputRenderMode = CheckBoxHiddenInputRenderMode.Inline;
            });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants