sdk-viewer
v2.2.1
Published
Simple to use (Angular) component for viewing text, such as JSON and arrays, with a 'copy to clipboard' option.
Downloads
16
Maintainers
Readme
Description:
The sdk-viewer component is used for viewing text, such as JSON and arrays, with a 'copy to clipboard' feature.
INSTALLATION:
Using NPM:
npm install --save sdk-viewer
CONFIGURATION:
To configure the sdk-viewer
for your application, add the following lines to your app.module.ts file:
import { SDKViewerModule } from 'sdk-viewer';
@NgModule({
imports: [
SDKViewerModule
]
})
export class AppModule { }
PROPERTIES:
text (any)
: Text to display (e.g., JSON, array, etc).font (string)
: The font family to use. Default: 'Courier New', Courier, monospace.color (string)
: The color of the text. Default: white.background (string)
: The background color of the viewer. Default: black.showLineNumbers (boolean)
: Show line numbers to the left of the content. Default: true.
USAGE:
<sdk-viewer [text]="text"></sdk-viewer>