Skip to content
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

sap.ui.unified.Calendar - month and year listener #361

Closed
harshal619 opened this issue Mar 19, 2015 · 4 comments
Closed

sap.ui.unified.Calendar - month and year listener #361

harshal619 opened this issue Mar 19, 2015 · 4 comments
Assignees

Comments

@harshal619
Copy link

Hi,

I m using "sap.ui.unified.Calendar" this calendar control in my app n it has user friendly UI.
It will be very helpful if there is a listener on years and month button.
Like if i select specific year or a month of specific year then there should be a listener which can tell me which year or month of the year is been selected so i can do my actions accordingly. It will be a useful feature.

Cheers,
Harshal

@Michadelic
Copy link
Contributor

Hi Harshal,

if i understood correctly, you would like to have additional events when the user selected a new year or month. I flagged this as a feature request and contacted the colleague that developed the control.

If the enhancement is considered useful by our development team, there are two options for enhancing this control:

  • You can contribute this functionality to OpenUI5
  • We can build it in, but we have to reserve some campacity for doing so

We will get back to you soon.

Cheers,

Michael

@harshal619
Copy link
Author

Hi Michael,

I guess this enhancement will take time. I would like contribute to build this functionality. It will be great if you give me some heads up and guid lines to start with.

Cheers,
Harshal

@boghyon
Copy link
Contributor

boghyon commented Jul 10, 2019

@harshal619 Would f20efb4 suffice for the enhancement request?
Her is a demo I just created: stackoverflow.com/a/56974021

openui5bot pushed a commit that referenced this issue Nov 25, 2021
The TableDelegate offers one hook to create a column and provides the
possibility to define a filter delegate in addition. As the column
might need a different fieldHelp associated to the inner Field template,
it might be necessary to associate a different fieldHelp to the FilterField
of the inner AdaptationFilterBar.

TableDelegate#addItem --> can be used to create a column
TableDelegate#getFilterDelegate#addItem --> can be used to create a FilterField

The example has ben enhanced to allow filtering also for "Orders" and "Authors".
In addition the same filter delegate as for the FilterBar delegate is being used,
this way the FilterFields will be created similarly as for the FilterBar.
For example "Stock" is now also a range slider.

Fixes testing issue #361

Change-Id: I3ac940f6b208f0b4c9c27212a47042c81668544b
@tsanislavgatev tsanislavgatev self-assigned this Mar 4, 2022
@tsanislavgatev
Copy link
Contributor

Hello @harshal619 ,

Sorry for the late response.
We have introduced such event. I am sending you a link to the documentation.

https://ui5.sap.com/#/api/sap.ui.unified.Calendar%23events/startDateChange

Listening to this event will give you access to every change(month, year, date) in the calendar.

Best Regards,
Tsanislav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants