私信 访问主页
I have an issue with igx-date-picker and I m not sure if I m doing it right.
igniteui-angular version: ^8.0.2 browser: Chrome Version 76.0.3809.100 (Official Build) (64-bit)该提问来源于开源项目 IgniteUI/igniteui-angular
点赞 写回答 收藏 复制链接分享 删除 再等等 结题 再想想 5条回答私信 访问主页
This was a component design decision. Keep in mind that our datePicker component is highly customizable, and if you want to somehow manage all the elements from the input, you can create a custom template with igx-input-group and change all the elements from there, and also use the placeholder attribute:
input class igx-date-picker__input-date igxinput placeholder ------
Example - https://stackblitz.com/edit/angular-custom-igx-mask-example
点赞 评论 复制链接分享私信 访问主页
Thanks for suggestion. It s works fine for me.
Mainly, I need to set a placeholder instead mask property, Is there valid reason for not exposing placeholder property ?I am just curious about this. Please advise.
点赞 评论 复制链接分享私信 访问主页
if you want to persist the same format you should use mask and format inputs
mask - Returns the date mask of the IgxDatePickerComponent when in editable dropdown mode.format - Returns the date display format of the IgxDatePickerComponent in dropdown mode.
Example:
igx-date-picker mode dropdown /igx-date-picker点赞 评论 复制链接分享
私信 访问主页
Thanks for the suggestion.
I tried it on following sample project.https://stackblitz.com/angular/maxbemdvdpk
HTML code :
On selecting a date date-picker input field shows value as 08/29/2019 .But, When I click outside, date value formatted into 8/29/19
If mask set to MM/dd/yyyy , but expected values are not retained in same format ?Mainly, I need to set a placeholder instead mask property, Is there valid reason for not exposing placeholder property ?Please advise.
点赞 评论 复制链接分享私信 访问主页
We use Angular DatePipe for date formatting and YYYY and DD are not valid placeholders. You should use the placeholders that are described in the Angular DatePipe docs. In your case the resulting format string should be MM/dd/yyyy.
点赞 评论 复制链接分享 提交 再想想 采纳 为你推荐 在JavaScript中加密字符串并使用RSA技术在PHP中解密 javascriptcryptographyencryptionphp 1个回答 点击登录 提问题 欢迎建议意见 . 如何写高质量提问和回答? 采纳榜7天 被采纳次数本文链接: http://igxgroup.immuno-online.com/view-721553.html