Web Component: j-Button
j-Button
A simple button component with great features.
- jComponent
v19
- fully responsive
- supports validation
Configuration:
exec
{String}
required a path to thefunction(el, path)
methodicon
{String}
Total JS icons (default:undefined
)color
{String}
An icon color (default:undefined
)validation
{Boolean}
Enables validation for all components on the path (default:true
)delay
{Number} a timeout for validation (default:100
)name
{String}
a name for thename
attribute (default:submit
)size
{String}
a size:small
normal
(default)large
big
ddos
{String}
A simple DDOS prevetion for multiple clicks, possible values:undefined
disables prevention10 seconds
session
1 day
- etc.
if
{String} can contain JS condition for evaluation(optional)value
{Object} contains entire modelpath
{String} contains changed path- must return boolean
track
{String} can contain paths divided by comma which evaluate validation (executors for paths aren't components, but these methodsSET()
,UPD()
,INC()
, etc.)validonly
{Boolean} skipsdirty
state (default:false
)
Author
- Peter Širka petersirka@gmail.com
- License
Created
29. april 2021
Updated
18. june 2024
jComponent library
19
Version
v1
License
https://www.totaljs.com/license/
Dark mode
Yes
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com