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

[DatePicker] Added disabled property and example #3060

Merged
merged 1 commit into from
Jan 29, 2016

Conversation

andrejunges
Copy link
Contributor

No description provided.

@mbrookes
Copy link
Member

Thanks @andrejunges Please could you put the example in ExampleSimple (just convention to have diabled examples there), and update the description in Page.jsx?

@oliviertassinari
Copy link
Member

Could you also set disabled: false in the getDefaultProps method? That's for the documentation.

@oliviertassinari oliviertassinari added PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI and removed PR: Needs Review labels Jan 27, 2016
@andrejunges
Copy link
Contributor Author

yep, will do that soon

@andrejunges
Copy link
Contributor Author

any other suggestion? @mbrookes @oliviertassinari

@mbrookes
Copy link
Member

Just this:

and update the description in Page.jsx?

@andrejunges
Copy link
Contributor Author

something like that @mbrookes ?

@@ -17,7 +17,8 @@ import datePickerExampleInternationalCode from '!raw!./ExampleInternational';
import datePickerReadmeText from './README';

const descriptions = {
simple: 'The Date Picker defaults to a portrait dialog. The `mode` property can be set to `landscape`.',
simple: 'The Date Picker defaults to a portrait dialog. The `mode` property can be set to `landscape`. You can ' +
'also disable the Dialog passing `true` to the property `disabled`.',
Copy link
Member

Choose a reason for hiding this comment

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

Looks good. I think "to the disabled property." might read better. (Minor nitpick!)

@andrejunges
Copy link
Contributor Author

done :)

@mbrookes mbrookes added PR: Review Accepted and removed PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI labels Jan 29, 2016
@mbrookes
Copy link
Member

Looks good to me.

oliviertassinari added a commit that referenced this pull request Jan 29, 2016
[DatePicker] Added disabled property and example
@oliviertassinari oliviertassinari merged commit f0ebb90 into mui:master Jan 29, 2016
@oliviertassinari
Copy link
Member

@andrejunges Thanks!

@zannager zannager added component: date picker This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module! labels Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: date picker This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants