Skip to content

Commit

Permalink
fix(DatePickerInput): Add hideFooter input to pass to DatePicker (#1581)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbullhorn authored Aug 5, 2024
1 parent f84172d commit ac7be36
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { isValid } from 'date-fns';
// App
import { NovoOverlayTemplateComponent } from 'novo-elements/elements/common';
import { DateFormatService, NovoLabelService } from 'novo-elements/services';
import { DateUtil, Helpers, Key } from 'novo-elements/utils';
import { BooleanInput, DateUtil, Helpers, Key } from 'novo-elements/utils';

// Value accessor for the component (supports ngModel)
const DATE_VALUE_ACCESSOR = {
Expand Down Expand Up @@ -60,6 +60,7 @@ const DATE_VALUE_ACCESSOR = {
[disabledDateMessage]="disabledDateMessage"
[ngModel]="value"
[weekStart]="weekStart"
[hideFooter]="hideFooter"
></novo-date-picker>
</novo-overlay-template>
`,
Expand Down Expand Up @@ -125,6 +126,12 @@ export class NovoDatePickerInputElement implements OnInit, OnChanges, AfterViewI
*/
@Input()
overlayOnElement: ElementRef;
/**
* Whether the footer in the date picker which contains `today` button should be hidden.
**/
@Input()
@BooleanInput()
public hideFooter: boolean = false;
/**
* Sets the field as to appear disabled, users will not be able to interact with the text field.
**/
Expand Down

0 comments on commit ac7be36

Please sign in to comment.