Skip to content

Commit

Permalink
Aliases for card_actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Salceanu committed Jan 5, 2022
1 parent cacfc9d commit bd7b2aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/Cards.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ using Genie, Stipple, StippleUI, StippleUI.API
import Genie.Renderer.Html: HTMLString, normal_element, register_normal_element

export card, card_section, card_actions
export cardsection, cardactions

register_normal_element("q__card", context = @__MODULE__)
register_normal_element("q__card__section", context = @__MODULE__)
Expand All @@ -21,8 +22,12 @@ function card_section(args...; kwargs...)
q__card__section(args...; kwargs...)
end

const cardsection = card_section

function card_actions(args...; kwargs...)
q__card__actions(args...; kwargs...)
end

const cardactions = card_actions

end
4 changes: 2 additions & 2 deletions src/Uploaders.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export uploader
register_normal_element("q__uploader", context = @__MODULE__)

function uploader(args...;
wrap::Function = StippleUI.DEFAULT_WRAPPER,
kwargs...)
wrap::Function = StippleUI.DEFAULT_WRAPPER,
kwargs...)
wrap() do
q__uploader(args...; kwargs...)
end
Expand Down

0 comments on commit bd7b2aa

Please sign in to comment.