-
Notifications
You must be signed in to change notification settings - Fork 102
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
Questions regarding datetimepicker #481
Comments
Let's start with the change event. I didn't try yet, but judging from the documentation of the underlying JavaScript component there should be a jQuery event |
As for the icon: we didn't make it configurable yet. We'll fix that in BF 1.0. Until then, I suppose you can overwrite the icon using some clever CSS. The HTML code looks like so: <div class="input-group date ">
...
<span class="input-group-addon">
<span>
<i class="glyphicon glyphicon-calendar"></i>
</span>
</span>
</div> So I'd try to construct a CSS constructor like ".input-group-date > input-group-addon > span > i" and set the image using an "!important" tag. That's a bit clumsy, but it should do the trick. I've opened a ticket to track progress on making the icon configurable: #483 . |
As for AJAX: I've opened a separate ticket to track this feature request: #482. |
Please report us back if we've managed to answers your questions, so we can close the ticket. As stated above, I've opened separate tickets for AJAX and the configurable icon. |
THX! Well, the PrimeFaces bit is annoying. We want BootsFaces to be compatible with PrimeFaces, but the CSS designers of Bootstrap and PrimeFaces don't talk with each other :(. |
Hi @ScreamingTree86, in my latest commit (5bd644f), i think i've solved two of your requests: the first one is the icon customization option, that now can be configured as a bootstrap or fontawesome custom icon. The second one is related to your problem of date picker widget visualization inside datatable component. I've worked on the js library and now, the component has a new attribute (widgetParent) that you can use as an external "anchor" to prevent popop to go under the component area. Obviously, the popup still display near to the input field. To better understand, this is an example:
without the widgetParent attribute, the popup will go under the overflow area and not display correctly. With the widgetParent attribute, instead, it display correctly. |
Hi, I think this looks very good. Espacially the anchor construct. Thank you for the work. Are these changes already in the latest snapshot? Then i can test them... Regards |
I've uploaded a new sneak preview version of BootsFaces to Maven Central a couple of minutes ago. As usual, see #369 on how to get it. |
Also, see the sneak preview demo at http://www3.bootsfaces.net/Showcase/forms/DateTimePicker.jsf. |
It seems like we've forgotten to close this ticket. |
Hi,
i want to use the
b:datetimepicker
to filter a datatable. In order to use this i need an ajax call to filter the table and set the datepicker date inside the underlying bean. As theb:datetimepicker
has no ajax abillitys i added this:With this it works perfectly if i change the date by myself. But it seems that no event is fired if i select a date from the calendar. Is there any event fired which i can use?
Another question is, how can i change the default glyphon icon of the datepicker button?
Last but not least, in my case the calendar element looks like this
in my web.xml i have set
But it looks quite different from your showcase http://showcase.bootsfaces.net/forms/DateTimePicker.jsf. Seems like there is missing the complete theme. Any ideas why?
€dit: i tried some things and found that this:
works for my needs. If the user clicks an element inside the calendar the input field automatically losses focus. On the other hand if the user changes the inputfield data by typing in the field he has to press enter to submit the content. works...
But i found another problem. The popup widget is generated on click inside the parent element. but if the element is too small (e.g. if it is used inside a datatable header and the table is empty) you only see a part of the widget and have to scoll inside the parent element/component. In primefaces they use to generate the widget outside the parent form element to get around this problem. Maybe this would be the way to go here.
The text was updated successfully, but these errors were encountered: