Comments (8)
Ok I will add a show-clear option.
from angular-material-datetimepicker.
Option show-clear added in: 307a514 v1.19.1
The label should be normally above the input.
dtp-input can be override with a css like: .dtp .dtp-input
Can you provide me a full example? (code) or better jsFiddle.
from angular-material-datetimepicker.
https://codepen.io/oliversalzburg/pen/NWKyJrd should showcase the issue with the label intersecting with the picker icon.
Also notice that, when you remove the .dtp-input
, it has no effect on how the input is rendererd, which lead me to believe the class is actually redundant.
Thanks for the show-clear
! I'll test it out ASAP
from angular-material-datetimepicker.
It's because this picker needs the placeholder attribute.
doctype html
html(
ng-csp
ng-app="foo"
)
md-input-container.md-block
label Start
input.dtp-no-msclear.dtp-input.md-input(
type="text"
mdc-datetime-picker
date="false"
time="true"
minutes="true"
ng-model-options="{timezone: meeting.fair.timezone}"
format="LT"
edit-input="true"
show-icon="true"
ng-model="vm.meeting.start"
placeholder="Enter time"
)
from angular-material-datetimepicker.
It's because this picker needs the placeholder attribute.
Oh yeah, that's much better 😀 Thanks for that. What about the dtp-input
class though? It seems like it's not doing anything. And if you were to remove the show-icon
, it even looks weird for being indented under the label.
from angular-material-datetimepicker.
show-clear
is working perfectly btw. Thanks again
from angular-material-datetimepicker.
Class like .dtp-no-msclear
or .dtp-input
are added by the datetime-picker component only when show-icon is "true"
. Most of the code in this fork is for a special use case.
html(
ng-csp
ng-app="foo"
)
md-input-container.md-block
label Start
input(
type="text"
mdc-datetime-picker
date="false"
time="true"
minutes="true"
ng-model-options="{timezone: meeting.fair.timezone}"
format="LT"
edit-input="true"
show-icon="false"
ng-model="vm.meeting.start"
)
Please check examples at: https://github.com/beenote/angular-material-datetimepicker/blob/gh-pages/index.html
from angular-material-datetimepicker.
Oh, I see. I just copied directly from https://beenote.github.io/angular-material-datetimepicker/ and didn't think the class would be added by the directive. Thanks
from angular-material-datetimepicker.
Related Issues (20)
- min time and max time HOT 1
- Add mdDialog hasBackdrop option HOT 4
- Add am/pm text customization HOT 2
- Do you have this in a non-angular version? HOT 1
- Could not find a declaration HOT 1
- Setting shortTime=true on a date picker shows AM/PM indicator HOT 4
- Month displayed is not the same as month view HOT 5
- Upgrade angular library HOT 1
- Cannot set default values for all params of the directive. HOT 1
- Support clearing date from dialog HOT 2
- unable to load datetime picker on dialog box. HOT 5
- ng-change not being triggered as expected and validation failing HOT 5
- If ng-disabled is true. Input field is disabled but buttons are not HOT 4
- Date part is lost when editing time HOT 4
- Which Angular Version? HOT 1
- Option to edit both date and time at the same time on dialog? HOT 1
- Not compatible with Angular 1.8
- User cannot use blue bubble on the clock to set time on Firefox HOT 1
- Min/max date comparison is apparently not timezone-safe HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-material-datetimepicker.