Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JsonComponent

Hierarchy

Indexable

[key: string]: any

Index

Constructors

constructor

Properties

active

active: boolean = false

changes$

changes$: ReplaySubject<Factory> = new ReplaySubject(1)

rxcompId

rxcompId: number = -1

unsubscribe$

unsubscribe$: Subject<void> = new Subject()

Methods

onChanges

onDestroy

  • onDestroy(): void

onInit

  • onInit(): void

onParentDidChange

onToggle

  • onToggle(): void

onView

  • onView(): void

pushChanges

  • pushChanges(): void

Static getInputsTokens

Object literals

Static meta

meta: object

inputs

inputs: string[] = ['item']

selector

selector: string = "json-component"

template

template: string = `<div class="rxc-block"><div class="rxc-head"><span class="rxc-head__title" (click)="onToggle()"><span *if="!active">+ json </span><span *if="active">- json </span><span [innerHTML]="item"></span></span></div><ul class="rxc-list" *if="active"><li class="rxc-list__item"><span class="rxc-list__value" [innerHTML]="item | json"></span></li></ul></div>`