JuliaGizmos / InteractBase.jl

Build interactive HTML5 widgets in Julia
Other
27 stars 23 forks source link

Add is-loading class in buttons #128

Closed piever closed 5 years ago

piever commented 5 years ago

Usage:

b = button("Asfda")
on(b) do _
    b["is-loading"][] = true
    println("Starting to compute")
    sleep(2)
    println("I'm done!")
    b["is-loading"][] = false
end
codecov-io commented 5 years ago

Codecov Report

Merging #128 into master will increase coverage by 0.04%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #128      +/-   ##
==========================================
+ Coverage   79.54%   79.58%   +0.04%     
==========================================
  Files          10       10              
  Lines         484      485       +1     
==========================================
+ Hits          385      386       +1     
  Misses         99       99
Impacted Files Coverage Δ
src/input.jl 83.73% <100%> (+0.13%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 81fd5f8...afc6cc5. Read the comment docs.