Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

feat(form): support a generic control container #4280

Merged

Conversation

gnomeontherun
Copy link
Contributor

This implements a new clr-control-container component and clrControl directive for wrapping potentially any form control to work with Clarity forms. Any controls must implement FormControlAccessor to properly wire up with the forms logic, but it works for internal or third party components.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • If applicable, have a visual design approval

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • clarity.design website / infrastructure changes
  • Other... Please describe:

What is the current behavior?

closes: #2886

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@gnomeontherun gnomeontherun force-pushed the forms/generic-container branch from d7261ea to 595fe3a Compare February 14, 2020 23:15
Copy link
Contributor

@hippee-lee hippee-lee left a comment

Choose a reason for hiding this comment

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

All the form containers got smaller and simpler 👏🏼.

// This software is released under MIT license.
// The full license information can be found in LICENSE in the root directory of this project.

@import '';
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: empty import or empty file?

@gnomeontherun gnomeontherun force-pushed the forms/generic-container branch 2 times, most recently from 303085b to 0c17789 Compare February 20, 2020 00:37
This implements a new `clr-control-container` component and `clrControl` directive for wrapping potentially any form control to work with Clarity forms. Any controls must implement FormControlAccessor to properly wire up with the forms logic, but it works for internal or third party components.

Signed-off-by: Jeremy Wilken <[email protected]>
@gnomeontherun gnomeontherun force-pushed the forms/generic-container branch from 0c17789 to ef7be50 Compare February 20, 2020 01:50
@gnomeontherun gnomeontherun merged commit 39f75ce into vmware-archive:master Feb 20, 2020
@rbirkgit
Copy link

Any chance this can be back ported to 2.x?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generic form containers for non-input elements and for custom Angular components.
5 participants