如何创建浮动帮助布局? [英] How to create a floating help layout?

查看:33
本文介绍了如何创建浮动帮助布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个{N}页面,有条件的话,我想创建一个指向页面上某些功能的浮动气泡文本标签.例如按开始按钮等等".

I've got a {N} page and conditionally I'd like to create a floating bubble text label pointing to certain features on the page. e.g. "Press START button to blah".

有关如何完成此操作的任何帮助.

Any help on how this could be done.

最好不修改xml页面文件.

Preferably w/o modifying the xml page files.

推荐答案

我发布了一个插件,可以简单地安装tns plugin add nativescript-tooltip即可完成您所要求的工作,然后可以按以下方式使用它

I released a plugin that can do what you are requesting simply install it tns plugin add nativescript-tooltip then you can use it as follows

TypeScript

TypeScript

import * as frame from "ui/frame";
import {ToolTip} from "nativescript-tooltip";
new ToolTip(frame.topmost().getViewById("someView"),{text:"Some Text"});

JavaScript

JavaScript

const frame = require("ui/frame");
const ToolTip = require("nativescript-tooltip").ToolTip;
new ToolTip(frame.topmost().getViewById("someView"),{text:"Some Text"});

插件回购

这篇关于如何创建浮动帮助布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆