Skip to content

Commit

Permalink
docs(timepicker): add note on text localization config
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg committed Jun 15, 2021
1 parent 456b165 commit fd01cef
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/framework/theme/components/timepicker/timepicker.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,25 @@ import { NB_DOCUMENT } from '../../theme.options';
* <input [nbTimepicker]="timepicker" twelveHoursFormat>
* <nb-timepicker #timepicke [ngModel]="date"></nb-timepicker>
*
* You can provide localized versions of the timepicker text via the `localization` property of the config
* object passed to the `forRoot` or `forChild` methods of the `NbTimepickerModule`:
* ```ts
* @NgModule({
* imports: [
* // ...
* NbTimepickerModule.forRoot({
* localization: {
* hoursText: 'Hr',
* minutesText: 'Min',
* secondsText: 'Sec',
* ampmText: 'Am/Pm',
* }
* }),
* ],
* })
* export class AppModule { }
* ```
*
* @styles
*
* timepicker-cell-text-color:
Expand Down

0 comments on commit fd01cef

Please sign in to comment.