my.showAddToDevice
showAddToDevice
my.showAddToDevice
là API để hiển thị nút lưu tiện ích xuống thiết bị trên Title Bar.
Quét mã để trải nghiệm
Hoặc sử dụng link
https://tiki.vn/apps/vn.tiki.miniapp.demo?page=pages/api/navigation-bar/show-add-to-device/index
Xem code mẫu trên Tini Studiohttps://tiki.vn/apps/vn.tiki.miniapp.demo?page=pages/api/navigation-bar/show-add-to-device/index
Demo
Trải nghiệm thử với trình giả lập bên dưới
API Params
Thuộc tính | Type | Bắt buộc | Mô tả |
---|---|---|---|
show | boolean | ✓ | set = true nếu muốn hiển thị button lưu tiện ích xuống thiết bị, set = false nếu muốn ẩn button lưu tiện ích xuống thiết bị |
Sample Code
Page({
onReady() {
my.showAddToDevice({ show: true });
}
});