igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Responsive calendar

Open al-matari opened this issue 8 years ago • 6 comments

Hallo Everyone

Calendar in landscape format is not scaled correctly. It looks like the dimensions are fixed and not responsive. Please look at the image. Is there a way to scale the calendar automatically if there is no space or to make it responsive.
querformat

best Regards Al-Matari

  • igniteui-angular version: 5.2.0
  • browser: all mobile browsers

al-matari avatar Sep 26 '18 09:09 al-matari

In landscape you should use the vertical Calendar layout.

StefanIvanov avatar Sep 28 '18 12:09 StefanIvanov

@al-matari, as @StefanIvanov pointed out, you can use the vertical layout of the Calendar. Here is a live sample. If you need to make additional changes to your layout, you can override the calendar styles via Sass.

tiliev avatar Sep 28 '18 14:09 tiliev

@al-matari We had a meeting to discuss a general approach to screen types, as well as other global application settings, which certain components would react with different defaults to.

What we concluded is that we should expose an app-level token, which is settable based on a developer provided strategy, which will then be used by components, like the IgxCalendar to change their default. This will look something like:

app.module: TOKEN.Display = DisplayType.TabletLandscape;

Same approach would be taken for the display density, like:

TOKEN.DisplayDensity = DisplayDensity.Compact

How this would impact the components would be that the calendar would automatically become [vertical]="true" if TabletLandscape is set, and [vertical]="false" if TabletPortait is set.

All of the properties and values I'm using are dummy, so the things may not be called the same way. What do you think?

kdinev avatar Oct 03 '18 13:10 kdinev

This is the PR for implementation of the DisplayDensity token: https://github.com/IgniteUI/igniteui-angular/pull/2748

bkulov avatar Oct 17 '18 13:10 bkulov

@al-matari closing this one as the Token option has been implemented

SlavUI avatar Jan 08 '19 09:01 SlavUI

@tiliev I am trying to remove header from igx-calender, <igx-calendar [hasHeader]="false" [selection]="selectionType"> Ignite version I am using is "^7.0.2" and Angular version is 7.2.0 but this is not working, Kindly assit.

SalkiDixit avatar Aug 22 '19 13:08 SalkiDixit