Page 1 of 1

How to remove 'View Day'?

PostPosted: Fri Aug 16, 2019 9:26 am
by eugenet
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 22595 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

Re: How to remove 'View Day'?

PostPosted: Fri Aug 16, 2019 11:03 am
by DanW
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

Re: How to remove 'View Day'?

PostPosted: Fri Aug 16, 2019 11:12 am
by eugenet
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 22588 times

Re: How to remove 'View Day'?

PostPosted: Fri Aug 16, 2019 11:19 am
by eugenet
Thanks Dan!

Re: How to remove 'View Day'?

PostPosted: Fri Aug 16, 2019 11:31 am
by DanW
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