Skip to content

Commit

Permalink
floatlabel | style doc added
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Feb 28, 2024
1 parent 0080b80 commit 32bc93e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/showcase/doc/floatlabel/floatlabeldoc.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import { ImportDoc } from './importdoc';
import { FloatLabelModule } from 'primeng/floatlabel';
import { InputTextModule } from 'primeng/inputtext';
import { AccessibilityDoc } from './accessibilitydoc';

import { StyleDoc } from './styledoc';
@NgModule({
imports: [CommonModule, RouterModule, AppCodeModule, AppDocModule, FormsModule, FloatLabelModule, InputTextModule],
declarations: [BasicDoc, ImportDoc, AccessibilityDoc],
declarations: [BasicDoc, ImportDoc, StyleDoc, AccessibilityDoc],
exports: [AppDocModule]
})
export class FloatLabelDocModule {}
27 changes: 27 additions & 0 deletions src/app/showcase/doc/floatlabel/styledoc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Component } from '@angular/core';

@Component({
selector: 'style-doc',
template: `
<app-docsectiontext>
<p>Following is the list of structural style classes, for theming classes visit <a href="#" [routerLink]="['/theming']">theming</a> page.</p>
</app-docsectiontext>
<div class="doc-tablewrapper">
<table class="doc-table">
<thead>
<tr>
<th>Name</th>
<th>Element</th>
</tr>
</thead>
<tbody>
<tr>
<td>p-float-label</td>
<td>Float label element.</td>
</tr>
</tbody>
</table>
</div>
`
})
export class StyleDoc {}
8 changes: 7 additions & 1 deletion src/app/showcase/pages/floatlabel/floatlabeldemo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';
import { BasicDoc } from '../../doc/floatlabel/basicdoc';
import { ImportDoc } from '../../doc/floatlabel/importdoc';
import { BasicDoc } from '../../doc/floatlabel/basicdoc';
import { StyleDoc } from '../../doc/floatlabel/styledoc';
import { AccessibilityDoc } from '../../doc/floatlabel/accessibilitydoc';
@Component({
templateUrl: './floatlabeldemo.html'
Expand All @@ -17,6 +18,11 @@ export class FloatLabelDemo {
label: 'Basic',
component: BasicDoc
},
{
id: 'style',
label: 'Style',
component: StyleDoc
},
{
id: 'accessibility',
label: 'Accessibility',
Expand Down

0 comments on commit 32bc93e

Please sign in to comment.