Skip to content

aberged/potok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Potok

Potok consists of:

1. Values [PVal] type
2. Elements [PEl] type

Values are passed to elements, elements update their state when values change

1. Values [PVal]type can be produces by:

1.1 Value fn - [val]

1.1 Value fn - [val] arguments:

1.1.1 Any object or primitive type (acts as a initial value; can be changed with set() and read by (); On change refreshes elements which have it as context value or depends on it)

2. Elements [PEl]type can be produced by:

2.1 Single element fn - [el]
2.2 List of elements fn - [...li]
2.3 Conditional elements fn - [...pif]

2.1 Single element fn - [el] arguments:

2.1.1 Context value [PVal] (will refresh on that value change and will be passed to attribute setters [AttributeSetter])
2.1.2 Values it depends on [PVal][] (will refresh on those values changes)
2.1.3 Attribute setters (will be called on context or dependency values change; updates element) [AttributeSetter]
2.1.4 Args list of child elements [PEl[]][]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages