Skip to content

mount a component in the action directly? #1887

Answered by jwoertink
zw963 asked this question in Q&A
Discussion options

You must be logged in to vote

You can call component from BrowserAction. https://luckyframework.org/guides/http-and-routing/request-and-response#handling-responses

class Htmx::Foo < BrowserAction

# ...
component(
            ClickEditTD,
            id: university.id.to_s,
            column_name: param_value[0],
            column_value: param_value[1],
            action: "/htmx/foo"
          )
end

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zw963
Comment options

@jwoertink
Comment options

@zw963
Comment options

Answer selected by zw963
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants