enterprise-wc icon indicating copy to clipboard operation
enterprise-wc copied to clipboard

IdsMonthView: show-today does not show toolbar button

Open fabiojpoli opened this issue 11 months ago • 3 comments

Describe the bug show-today does not show toolbar button as described on doc.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://main.wc.design.infor.com/ids-month-view/example.html
  2. The show-today is set to true but there is not button.

Expected behavior Show Today button on top of the calendar.

Screenshots Screen Shot 2024-03-12 at 10 01 41 AM

fabiojpoli avatar Mar 12 '24 15:03 fabiojpoli

@fabiojpoli what do you want exactly? That option is part of the datepicker/calendar which uses datepicker.

  • in datepicker adds showToday to the popup
  • in calendar adds showToday to the calendar https://main.wc.design.infor.com/ids-calendar/example.html

tmcconechy avatar Mar 12 '24 15:03 tmcconechy

@tmcconechy I want what is in the documentation and example whatever that config means which I don't even know, but is there on doc and example but I don't see anything different in the component when is set to true. So this is why I imagined it is a bug.

The doc (https://github.com/infor-design/enterprise-wc/tree/main/src/components/ids-month-view) says:

show-today {true|false} - Specifies whether or not to show the today button in the toolbar

and I posted in the issue description, the example https://main.wc.design.infor.com/ids-month-view/example.html has that flag enabled (look at the screenshot attached in the issue)

fabiojpoli avatar Mar 12 '24 15:03 fabiojpoli

Ok its because the monthview has a small and large mode the small mode is used on

https://main.wc.design.infor.com/ids-date-picker/example.html

The setting is only used in small mode so works on datepicker. But doesnt really have any effect on large mode because there is no toolbar. But if you want all that you can use calendar to get the toolbar. So i guess i'll update the doc to be more clear

tmcconechy avatar Mar 12 '24 15:03 tmcconechy

we are going to add the toolbar to default monthview here

inforandy avatar Jul 23 '24 15:07 inforandy