Skip to content

Commit

Permalink
Merge pull request #15766 from khayo/configuration-docs
Browse files Browse the repository at this point in the history
Documentation Correction - Configuration
  • Loading branch information
cetincakiroglu authored Jun 13, 2024
2 parents e4b7c69 + 47d61a5 commit 6663685
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/showcase/doc/configuration/cspdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { PrimeNGConfig } from 'primeng/api';
export class CspDoc {
code: Code = {
basic: `constructor(private primengConfig: PrimeNGConfig) {
this.config.csp.set({nonce: '...'});
this.primengConfig.csp.set({nonce: '...'});
}
`
};
Expand Down
4 changes: 2 additions & 2 deletions src/app/showcase/doc/configuration/filtermodedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Code } from '@domain/code';
})
export class FilterModeDoc {
code: Code = {
typescript: `import { PrimeNGConfig } from 'primeng/api';
typescript: `import { FilterMatchMode, PrimeNGConfig } from 'primeng/api';
@Component({
selector: 'app-root',
Expand All @@ -23,7 +23,7 @@ export class AppComponent implements OnInit {
constructor(private primengConfig: PrimeNGConfig) {}
ngOnInit() {
primengConfig.filterMatchModeOptions = {
this.primengConfig.filterMatchModeOptions = {
text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],
numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],
date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]
Expand Down
4 changes: 2 additions & 2 deletions src/app/showcase/doc/configuration/locale/setlocaledoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ import { PrimeNGConfig } from 'primeng/api';
})
export class AppComponent implements OnInit, OnDestroy {
constructor(private config: PrimeNGConfig) {}
constructor(private primengConfig: PrimeNGConfig) {}
ngOnInit() {
this.config.setTranslation({
this.primengConfig.setTranslation({
accept: 'Accept',
reject: 'Cancel',
//translations
Expand Down

0 comments on commit 6663685

Please sign in to comment.