-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
7 changed files
with
92 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import Link from 'next/link'; | ||
import { InputTextarea } from '../../lib/inputtextarea/InputTextarea'; | ||
import { DocSectionCode } from '../common/docsectioncode'; | ||
import { DocSectionText } from '../common/docsectiontext'; | ||
|
||
export function KeyFilterDoc(props) { | ||
const code = { | ||
basic: ` | ||
<InputTextarea keyfilter="int" placeholder="Integers" /> | ||
`, | ||
javascript: ` | ||
import { InputTextarea } from "primereact/inputtextarea"; | ||
export default function KeyFilterDemo() { | ||
return ( | ||
<InputTextarea keyfilter="int" placeholder="Integers" rows={2} cols={30}/> | ||
) | ||
} | ||
`, | ||
typescript: ` | ||
import { InputTextarea } from "primereact/inputtextarea"; | ||
export default function KeyFilterDemo() { | ||
return ( | ||
<InputTextarea keyfilter="int" placeholder="Integers" rows={2} cols={30}/> | ||
) | ||
} | ||
` | ||
}; | ||
|
||
return ( | ||
<> | ||
<DocSectionText {...props}> | ||
InputTextarea has built-in key filtering support to block certain keys, refer to <Link href="/keyfilter">keyfilter</Link> page for more information. | ||
</DocSectionText> | ||
<div className="card flex justify-content-center"> | ||
<InputTextarea keyfilter="int" placeholder="Integers" rows={2} cols={30} /> | ||
</div> | ||
<DocSectionCode code={code} /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.