Skip to content

Commit

Permalink
update inputnumber docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Dec 19, 2024
1 parent 65d3cc8 commit 5342728
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions apps/showcase/doc/inputnumber/buttonsdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import { Component } from '@angular/core';
<div class="flex-auto">
<label class="mb-2 block font-bold" for="horizontal">Horizontal with Step</label>
<p-inputnumber [(ngModel)]="value3" [showButtons]="true" buttonLayout="horizontal" inputId="horizontal" spinnerMode="horizontal" [step]="0.25" mode="currency" currency="EUR">
<ng-template pTemplate="incrementbuttonicon">
<ng-template #incrementbuttonicon>
<span class="pi pi-plus"></span>
</ng-template>
<ng-template pTemplate="decrementbuttonicon">
<ng-template #decrementbuttonicon>
<span class="pi pi-minus"></span>
</ng-template>
</p-inputnumber>
Expand All @@ -46,10 +46,10 @@ export class ButtonsDoc {
basic: `<p-inputnumber [(ngModel)]="value1" [showButtons]="true" inputId="stacked" mode="currency" currency="USD" />
<p-inputnumber [(ngModel)]="value2" mode="decimal" [showButtons]="true" inputId="minmax-buttons" [min]="0" [max]="100" />
<p-inputnumber [(ngModel)]="value3" [showButtons]="true" buttonLayout="horizontal" inputId="horizontal" spinnerMode="horizontal" [step]="0.25" mode="currency" currency="EUR">
<ng-template pTemplate="incrementbuttonicon">
<ng-template #incrementbuttonicon>
<span class="pi pi-plus"></span>
</ng-template>
<ng-template pTemplate="decrementbuttonicon">
<ng-template #decrementbuttonicon>
<span class="pi pi-minus"></span>
</ng-template>
</p-inputnumber>`,
Expand All @@ -72,10 +72,10 @@ export class ButtonsDoc {
Horizontal with Step
</label>
<p-inputnumber [(ngModel)]="value3" [showButtons]="true" buttonLayout="horizontal" inputId="horizontal" spinnerMode="horizontal" [step]="0.25" mode="currency" currency="EUR">
<ng-template pTemplate="incrementbuttonicon">
<ng-template #incrementbuttonicon>
<span class="pi pi-plus"></span>
</ng-template>
<ng-template pTemplate="decrementbuttonicon">
<ng-template #decrementbuttonicon>
<span class="pi pi-minus"></span>
</ng-template>
</p-inputnumber>
Expand Down
12 changes: 6 additions & 6 deletions apps/showcase/doc/inputnumber/verticaldoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import { Component } from '@angular/core';
</app-docsectiontext>
<div class="card flex justify-center">
<p-inputnumber [(ngModel)]="value1" [showButtons]="true" buttonLayout="vertical" spinnerMode="vertical" inputId="vertical" [inputStyle]="{ width: '3rem' }">
<ng-template pTemplate="incrementbuttonicon">
<ng-template #incrementbuttonicon>
<span class="pi pi-plus"></span>
</ng-template>
<ng-template pTemplate="decrementbuttonicon">
<ng-template #decrementbuttonicon>
<span class="pi pi-minus"></span>
</ng-template>
</p-inputnumber>
Expand All @@ -26,20 +26,20 @@ export class VerticalDoc {

code: Code = {
basic: `<p-inputnumber [(ngModel)]="value1" [showButtons]="true" buttonLayout="vertical" spinnerMode="vertical" inputId="vertical" [inputStyle]="{ width: '3rem' }">
<ng-template pTemplate="incrementbuttonicon">
<ng-template #incrementbuttonicon>
<span class="pi pi-plus"></span>
</ng-template>
<ng-template pTemplate="decrementbuttonicon">
<ng-template #decrementbuttonicon>
<span class="pi pi-minus"></span>
</ng-template>
</p-inputnumber>`,

html: `<div class="card flex justify-center">
<p-inputnumber [(ngModel)]="value1" [showButtons]="true" buttonLayout="vertical" spinnerMode="vertical" inputId="vertical" [inputStyle]="{ width: '3rem' }">
<ng-template pTemplate="incrementbuttonicon">
<ng-template #incrementbuttonicon>
<span class="pi pi-plus"></span>
</ng-template>
<ng-template pTemplate="decrementbuttonicon">
<ng-template #decrementbuttonicon>
<span class="pi pi-minus"></span>
</ng-template>
</p-inputnumber>
Expand Down

0 comments on commit 5342728

Please sign in to comment.