Skip to content
This repository has been archived by the owner on Mar 2, 2018. It is now read-only.

How enable Saturday and Sunday #221

Open
SubhenduScottDas opened this issue Oct 24, 2017 · 2 comments
Open

How enable Saturday and Sunday #221

SubhenduScottDas opened this issue Oct 24, 2017 · 2 comments

Comments

@SubhenduScottDas
Copy link

Would like to know how to enable Saturday and Sunday and be able to select.

@kurodaSensei
Copy link

kurodaSensei commented Oct 26, 2017

Hi @ScottHitachi
For enable weekend day's, set NguiDatetime.weekends to null
Example: NguiDatetime.weekends = [null, null];
In your module.

import { NguiDatetimePickerModule, NguiDatetime } from '@ngui/datetime-picker';

// Override Weekends day's object formatter
NguiDatetime.weekends = [null, null];

@NgModule({
  imports: [BrowserModule, FormsModule, NguiDatetimePickerModule],
  declarations: [AppComponent],
  bootstrap: [ AppComponent ]
})
export class AppModule { }

@allenhwkim
Copy link
Contributor

allenhwkim commented Oct 26, 2017

@kurodaSensei thanks, I even forgot about that although I designed and coded it (getting old)

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

No branches or pull requests

3 participants