Overview
class Shop::App < Matestack::Ui::App
def response
nav do
transition 'Matestack Shop', path: root_path
transition 'Products', path: products_path
end
yield
end
endclass Shop::Pages::Products::Index < Matestack::Ui::Page
def response
Products.all.each do |product|
div do
paragraph product.name
transition 'Details', path: product_path(product)
end
end
end
endTransitions between pages without page reload
Transitions between pages with loading element
Styling active transitions and it's parents
Transition Component APILast updated
Was this helpful?