-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
InnerLoader and ScrollArea components
- Loading branch information
Adrian Salceanu
committed
Nov 21, 2021
1 parent
ef8a228
commit 6ae40d6
Showing
4 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module InnerLoaders | ||
|
||
using Genie, Stipple, StippleUI, StippleUI.API | ||
import Genie.Renderer.Html: HTMLString, normal_element, register_normal_element | ||
|
||
export innerloader | ||
|
||
register_normal_element("q__inner__loading", context = @__MODULE__) | ||
|
||
function innerloader(label::String = "", | ||
state::Union{Symbol,Nothing} = nothing, | ||
args...; | ||
wrap::Function = StippleUI.DEFAULT_WRAPPER, | ||
kwargs...) | ||
|
||
wrap() do | ||
q__inner__loading( args...; | ||
attributes( | ||
[ Symbol(":state") => state, | ||
:label => label, | ||
kwargs... | ||
], StippleUI.API.ATTRIBUTES_MAPPINGS)...) | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module ScrollAreas | ||
|
||
using Genie, Stipple, StippleUI, StippleUI.API | ||
import Genie.Renderer.Html: HTMLString, normal_element, template, register_normal_element | ||
|
||
export scrollarea | ||
|
||
register_normal_element("q__scroll__area", context = @__MODULE__) | ||
|
||
function scrollarea(args...; wrap::Function = StippleUI.DEFAULT_WRAPPER, kwargs...) | ||
wrap() do | ||
q__scroll__area(args...; kwargs...) | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6ae40d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
6ae40d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/49125
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
6ae40d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
6ae40d6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request updated: JuliaRegistries/General/49125
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: