How to remove 'View Day'?

Notes on our latest calendar for FileMaker 13,: DayBack
Posts: 60
Joined: Wed Jun 23, 2010 9:21 pm
PostPosted: Fri Aug 16, 2019 9:26 am
Screen Shot 2019-08-16 at 7.23.31 AM.png
Screen Shot 2019-08-16 at 7.23.31 AM.png (53.01 KiB) Viewed 22576 times

Hi,

I'm sorry, but I don't know the proper name for this UI element. It's a popover, but not the usual Event Popover...I'm looking for a way to remove 'View Day'. Any ideas?

Thanks,

Eugene
SeedCode Staff
SeedCode Staff
Posts: 190
Joined: Tue Sep 22, 2015 2:27 pm
PostPosted: Fri Aug 16, 2019 11:03 am
Hi Eugene,

Good question. This one's tricky because the btn-default class on the "View Day" button gets used in other places, like on that "Close" button. But, we can still target that specific button element using its other attributes, like this:

Code: Select all
.btn-default[ng-click="viewDay(newEvent.selectedDate)"] {
   display: none;
}


Just be mindful when typing or copy/pasting that bit of code. Those quote characters need to be straight quotes; sometimes they can get overridden with angled "smart" quotes, which will break things =).

I think you're familiar with editing DayBack's CSS, but in case not, and for anyone else following along, this link provides an overview of how to customize styles in DayBack along with some examples:
https://www.seedcode.com/pmwiki/index.php?n=DayBackForFileMaker.CSS

Hope that helps,

Dan
Posts: 60
Joined: Wed Jun 23, 2010 9:21 pm
PostPosted: Fri Aug 16, 2019 11:12 am
I did it this way, not ok?

.dbk_newEvent .btn-default {
display: none;
}

...it also gets rid of the 'close' button, but I suppose it's not really necessary to have it.

Screen Shot 2019-08-16 at 9.10.26 AM.png
Screen Shot 2019-08-16 at 9.10.26 AM.png (31.83 KiB) Viewed 22569 times
Posts: 60
Joined: Wed Jun 23, 2010 9:21 pm
PostPosted: Fri Aug 16, 2019 11:19 am
Thanks Dan!
SeedCode Staff
SeedCode Staff
Posts: 190
Joined: Tue Sep 22, 2015 2:27 pm
PostPosted: Fri Aug 16, 2019 11:31 am
Nice, Eugene! Yes, your other way works, too, if you don't mind the hidden Close button.

The New Event popover closes when clicking off of it, except if you click again on the same day/region that the popover is in. I might worry that users might feel stuck without the close button there.

Best,

Dan

Return to DayBack Calendar for FileMaker

Who is online

Users browsing this forum: No registered users and 6 guests

(855) SEEDCODE
[email protected]
Follow us: