GitHub

DaffTextSnippetComponent

import { DaffTextSnippetComponent } from '@daffodil/design/text-snippet'

@Component()
class DaffTextSnippetComponent {
  @ViewChild() contentRef: ElementRef<any>
  @ViewChild() htmlRef: ElementRef<any>

  @Input() condensed: boolean = true
  @Input() html: string = ''

  @Output() toggle: EventEmitter<boolean> = new EventEmitter()

  toggleSnippet(): void
}

() Methods

toggleSnippet
void

Inputs

condensed
boolean
Defaulttrue
Description

A property to track whether or not the component should render a condensed version of the content.

html
string
Default''
Description

Outputs

toggle
EventEmitter<boolean>
Default
Description

An output event that can be used to track the state of the component externally.