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

setting date field to readonly doesn't work #25

Open
lmueller74 opened this issue May 21, 2015 · 8 comments
Open

setting date field to readonly doesn't work #25

lmueller74 opened this issue May 21, 2015 · 8 comments
Labels

Comments

@lmueller74
Copy link

I'm trying to make my datepicker field readonly and that attribute in the schema seems to be ignored. any ideas?

@davidlgj
Copy link
Contributor

Oh, it's the template that needs an ng-disabled https://github.com/Textalk/angular-schema-form-datepicker/blob/master/src/datepicker.html#L8

@davidlgj davidlgj added the bug label May 27, 2015
@lmueller74
Copy link
Author

i guess i still don't see how to do that within the framework of angular-schema-form - is there a straightforward way, or is this like a post-processing step?

@Dervisevic
Copy link
Contributor

It's not done within the framework. The template needs to be edited. The input needs a ng-disabled like this one here https://github.com/Textalk/angular-schema-form/blob/development/src/directives/decorators/bootstrap/default.html

On Wed, May 27, 2015 at 4:44 PM, lmueller74 [email protected]
wrote:

i guess i still don't see how to do that within the framework of angular-schema-form - is there a straightforward way, or is this like a post-processing step?

Reply to this email directly or view it on GitHub:
#25 (comment)

@lmueller74
Copy link
Author

I see - wasnt there on first link, but i get it now.

On Wednesday, May 27, 2015, Denis Dervisevic [email protected]
wrote:

It's not done within the framework. The template needs to be edited. The
input needs a ng-disabled like this one here
https://github.com/Textalk/angular-schema-form/blob/development/src/directives/decorators/bootstrap/default.html

On Wed, May 27, 2015 at 4:44 PM, lmueller74 <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');>
wrote:

i guess i still don't see how to do that within the framework of
angular-schema-form - is there a straightforward way, or is this like a

post-processing step?

Reply to this email directly or view it on GitHub:

#25 (comment)


Reply to this email directly or view it on GitHub
#25 (comment)
.

@davidlgj
Copy link
Contributor

Sorry @lmueller74 I could have been a lot more clearer! The problem is basically that the datepicker doesn't implement it yet, but it's probably just a ng-diasabled that needs to be added to the datepickers template.

Look at the template @Dervisevic linked to. Afterwards there is a build step, first npm install (if you haven't done it) and then invoke the default task of gulpfile.js with gulp (or node_modules/gulp/bin/gulp.js if you don't have gulp installed)

If you do this please consider making a PR (just don't include the minified files in the commits)

@lmueller74
Copy link
Author

i'm actually working within MS VS 2013 - so i'm currently referencing
everything on CDN... I will get around to installing everything locally -
it's just a bit of a pain with VS in my experience....all the bower and npm
installs instead of NuGet

On Wed, May 27, 2015 at 2:51 PM, David Jensen [email protected]
wrote:

Sorry @lmueller74 https://github.com/lmueller74 I could have been a lot
more clearer! The problem is basically that the datepicker doesn't
implement it yet, but it's probably just a ng-diasabled that needs to be
added to the datepickers template.

Look at the template @Dervisevic https://github.com/Dervisevic linked
to. Afterwards there is a build step, first npm install (if you haven't
done it) and then invoke the default task of gulpfile.js with gulp (or
node_modules/gulp/bin/gulp.js if you don't have gulp installed)

If you do this please consider making a PR (just don't include the
minified files in the commits)


Reply to this email directly or view it on GitHub
#25 (comment)
.

@davidlgj
Copy link
Contributor

@lmueller74 I felt a bit sorry for you :) I think it's fixed with the latest release (0.4.0) please try it out.

@lmueller74
Copy link
Author

Awesome - thanks!

On Thu, May 28, 2015 at 9:45 AM, David Jensen [email protected]
wrote:

@lmueller74 https://github.com/lmueller74 I felt a bit sorry for you :)
I think it's fixed with the latest release (0.4.0) please try it out.


Reply to this email directly or view it on GitHub
#25 (comment)
.

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

No branches or pull requests

3 participants