Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LocalStorageComponent

Hierarchy

  • Component
    • LocalStorageComponent

Indexable

[key: string]: any

Index

Constructors

constructor

Properties

active

active: boolean = false

changes$

changes$: ReplaySubject<Factory>

items

items: IStorageItem[] = []

rxcompId

rxcompId: number

unsubscribe$

unsubscribe$: Subject<void>

Methods

onChanges

  • onChanges(changes: Factory | Window): void
  • Parameters

    • changes: Factory | Window

    Returns void

onClear

  • onClear(): void

onDestroy

  • onDestroy(): void

onInit

  • onInit(): void

onParentDidChange

  • onParentDidChange(changes: Factory | Window): void

onRemove

onToggle

  • onToggle(): void

onView

  • onView(): void

pushChanges

  • pushChanges(): void

Static getInputsTokens

  • getInputsTokens(instance: Factory, node: IElement, module: Module): {}
  • Parameters

    • instance: Factory
    • node: IElement
    • module: Module

    Returns {}

    • [key: string]: string

Object literals

Static meta

meta: object

selector

selector: string = "local-storage-component"

template

template: string = `<div class="rxc-block"><div class="rxc-head"><span class="rxc-head__title" (click)="onToggle()"><span *if="!active">+ localStorage</span><span *if="active">- localStorage</span><span [innerHTML]="' {' + items.length + ')'"></span></span><span class="rxc-head__remove" (click)="onClear()">x</span></div><ul class="rxc-list" *if="active"><li class="rxc-list__item" *for="let item of items"><span class="rxc-list__name" [innerHTML]="item.name"></span><span class="rxc-list__value" [innerHTML]="item.value | json"></span><span class="rxc-list__remove" (click)="onRemove(item)">x</span></li></ul></div>`