enterprise-wc
enterprise-wc copied to clipboard
IdsMonthView: show-today does not show toolbar button
Describe the bug
show-today
does not show toolbar button as described on doc.
To Reproduce Steps to reproduce the behavior:
- Go to https://main.wc.design.infor.com/ids-month-view/example.html
- The
show-today
is set to true but there is not button.
Expected behavior Show Today button on top of the calendar.
Screenshots
@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 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)
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
we are going to add the toolbar to default monthview here