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

Added support for show/hide rules #134

Merged
merged 2 commits into from
Nov 11, 2015

Conversation

eneufeld
Copy link
Member

@eneufeld eneufeld commented Nov 6, 2015

This is a first implementation of a possible rule support as requested in #71 .
Disable and enable rules are not supported yet.

@@ -5,7 +5,7 @@ class NumberRenderer implements JSONForms.IRenderer {
priority = 2;

render(element: IUISchemaElement, subSchema: SchemaElement, schemaPath: string, services: JSONForms.Services) {
var control = JSONForms.RenderDescriptionFactory.createControlDescription(schemaPath, services, element.label);
var control = JSONForms.RenderDescriptionFactory.createControlDescription(schemaPath, services, element.label, element.rule);
Copy link
Contributor

Choose a reason for hiding this comment

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

We should think about passing the element directly to the createControlDesription method, but we can solve this with via another issue, so you don't need to take action on this.

@edgarmueller
Copy link
Contributor

This looks great, I only have minor nitpicks. Can you address them, so I can merge this?

edgarmueller added a commit that referenced this pull request Nov 11, 2015
Added support for show/hide rules
@edgarmueller edgarmueller merged commit a49f3a4 into eclipsesource:master Nov 11, 2015
@edgarmueller
Copy link
Contributor

Thanks!

@eneufeld eneufeld deleted the feature_rule branch April 21, 2016 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants