The question says it all.
I have hunted high & low and don't see a way, but, before I hack the template I thought that I would ask here.
Just to make it clear - I want to be able to add some text at the top of the datepicker (which is a popup, if that makes any difference) such as "When is your birthday?".
There are many ways to do this if you follow this topic: Can you override specific templates in AngularUI Bootstrap? but I will just limit to two, one of which is CSS.
Template overriding:
Plunker Demo
The default file for the popup file is
template/datepicker/popup.html
, you just need to copy the contents of the file and append new code to it. The new code then will be wrapped inside<script id="template/datepicker/popup.html" type="text/ng-template">
directive and placed within<head>
CSS edit:
This is a non-standard way but it doesn't disturb your template structure anyway.
Plunker Demo
:before
pseudo element in CSS supportscontent
property to create text. Since you don't need to add anything other than header text/title, this is a fitting solution. Check thestyle.css
file in the Plunkr to edit the text.