cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 - How to remove the view selection for a Planning Calendar

0 Kudos

Hello,

I've made a Planning Calendar that works nicely, and I have set the view key so that it loads showing 1 week by default. However, this is the only way I want the user to view the calendar, how can I remove the drop down box that changes the view ?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Hi Joseph,

Try it

onInit:function(){
  this.byId("<your Id planning>").setBuiltInViews(["Month", "One Month", "Week"]);
}

If you don't want the view '1 week', so don't put "Week" in array setBuiltInViews

You can also see exemple

Hope it helps

Regards,

Dieu

0 Kudos

That worked perfectly, thank you!

Answers (0)