Home Reference Source
import Declaration from 'potassium-es/src/style/Declaration.js'
public class | source

Declaration

A KSS declaration with a property, value, and importance.

Example serialized declarations:

  • font-size: 12em !important;
  • background-color: var(--super-green)

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
public set
public get
public set
public get

value: *

public set

Method Summary

Public Methods
public

reset(property: *, value: *, important: boolean)

Public Constructors

public constructor() source

Public Members

public get important: * source

public set important source

public get property: * source

public set property source

public get value: * source

public set value source

Public Methods

public reset(property: *, value: *, important: boolean) source

Params:

NameTypeAttributeDescription
property *
value *
important boolean
  • optional
  • default: false