Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

directive: DatePicker input element #21

Open
sleidig opened this issue Oct 6, 2015 · 1 comment
Open

directive: DatePicker input element #21

sleidig opened this issue Oct 6, 2015 · 1 comment

Comments

@sleidig
Copy link
Member

sleidig commented Oct 6, 2015

Create a custom angular directive that allows to use a datepicker element easily?

Currently the template needed to use the angular-ui datepicker is a little complex:

<input type="text" class="form-control" datepicker-popup="{{format}}"
    ng-model="child.dateOfBirth" is-open="dateDoB.opened"/>
<span class="input-group-btn">
    <button type="button" class="btn btn-default" ng-click="dateDoB.opened=true">
        <i class="fa fa-calendar"></i>
    </button>
</span>
@sleidig sleidig added this to the v1.1 milestone Oct 6, 2015
@sleidig sleidig modified the milestone: v1.1 Dec 18, 2015
@sleidig sleidig added this to the Attendance Reports milestone Jan 14, 2016
@sleidig
Copy link
Member Author

sleidig commented Mar 22, 2016

maybe we should use <uib-tooltip> as a tag instead of uib-datepicker-popup parameter of the <input> (see https://angular-ui.github.io/bootstrap/#/datepicker) rather than the construct of p/input/span/...

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

No branches or pull requests

1 participant