lowdefy/packages/docs/templates/navigation_buttons.yaml
2021-02-05 12:38:26 +02:00

69 lines
1.6 KiB
YAML

# Copyright 2020-2021 Lowdefy, Inc
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
id: nav_buttons
type: Box
style:
marginTop: 40px
marginBottom: 80px
layout:
contentGutter: 16
blocks:
- id: previous_button
type: Button
layout:
span: 12
properties:
block: true
hideActionLoading: true
icon: ArrowLeftOutlined
size: large
title:
_var: previous_page_title
type: default
events:
onClick:
- id: link_back
type: Link
params:
pageId:
_var: previous_page_id
- id: scroll_to_top
type: ScrollTo
params:
top: 0
- id: next_button
type: Button
layout:
span: 12
properties:
block: true
hideActionLoading: true
icon: ArrowRightOutlined
size: large
title:
_var: next_page_title
type: default
events:
onClick:
- id: link_forward
type: Link
params:
pageId:
_var: next_page_id
- id: scroll_to_top
type: ScrollTo
params:
top: 0