Skip to content

Commit

Permalink
update slider vertical doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed May 21, 2024
1 parent 4783324 commit a2e9bc3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/showcase/doc/slider/verticaldoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ import { Code } from '@domain/code';
<p>Default layout of slider is <i>horizontal</i>, use <i>orientation</i> property for the alternative <i>vertical</i> mode.</p>
</app-docsectiontext>
<div class="card flex justify-content-center">
<p-slider [(ngModel)]="value" orientation="vertical" />
<p-slider [(ngModel)]="value" orientation="vertical" styleClass="h-14rem" />
</div>
<app-code [code]="code" selector="slider-vertical-demo"></app-code>
`
})
export class VerticalDoc {
value!: number;
value: number = 50;

code: Code = {
basic: `<p-slider [(ngModel)]="value" orientation="vertical" />`,
basic: `<p-slider [(ngModel)]="value" orientation="vertical" styleClass="h-14rem" />`,

html: `<div class="card flex justify-content-center">
<p-slider [(ngModel)]="value" orientation="vertical" />
<p-slider [(ngModel)]="value" orientation="vertical" styleClass="h-14rem" />
</div>`,

typescript: `import { Component } from '@angular/core';
Expand All @@ -34,7 +34,7 @@ import { SliderModule } from 'primeng/slider';
imports: [FormsModule, SliderModule]
})
export class SliderVerticalDemo {
value!: number;
value: number = 50;
}`
};
}

0 comments on commit a2e9bc3

Please sign in to comment.