Skip to content

Conversation

@AhmetTanakol
Copy link
Contributor

Added new example files to separate examples for numbers and texts.

Fix #865

@coveralls
Copy link

coveralls commented Apr 10, 2018

Coverage Status

Coverage decreased (-0.6%) to 85.009% when pulling 40444eb on AhmetTanakol:updated-examples into 1dccba5 on eclipsesource:master.

Copy link
Contributor

@edgarmueller edgarmueller left a comment

Choose a reason for hiding this comment

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

Looks good, some remarks.

{
type: 'Control',
scope: '#/properties/address',
label: 'Address',
Copy link
Contributor

Choose a reason for hiding this comment

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

Explicitly point that this is using trim and restrict options

@@ -0,0 +1,73 @@
import { registerExamples } from './register';

export const schema = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can pick a different example, since an address is not typically entered in a single text field. Also reduce the maxLength to a size of 10 which is beneficial when playing around with the examples.

properties: {
price: {
type: 'number',
maximum: 300,
Copy link
Contributor

Choose a reason for hiding this comment

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

Lower to 100

};

export const uischema = {
type: 'VerticalLayout',
Copy link
Contributor

Choose a reason for hiding this comment

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

Add controls for integer and number as well

@AhmetTanakol
Copy link
Contributor Author

updated

@edgarmueller edgarmueller changed the title separate examples for numbers and texts Add explicit examples for numbers and text controls Apr 12, 2018
@edgarmueller edgarmueller merged commit 77f6068 into eclipsesource:master Apr 12, 2018
@edgarmueller
Copy link
Contributor

Thank you

@AhmetTanakol AhmetTanakol deleted the updated-examples branch June 6, 2018 11:45
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.

4 participants