forked from NativeScript/NativeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathborder-tests.ts
More file actions
36 lines (31 loc) · 929 Bytes
/
border-tests.ts
File metadata and controls
36 lines (31 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import buttonModule = require("ui/button");
import colorModule = require("color");
// <snippet module="ui/border" title="Border">
// # Border
// Using borders requires the "ui/border" module.
// ``` JavaScript
import borderModule = require("ui/border");
// ```
// ### Declaring a Border.
//```XML
// <Page>
// <Border cornerRadius="10" borderWidth="1" borderColor="#FF0000">
// <Button text="OK"/>
// </Border>
// </Page>
//```
// </snippet>
export function test_DummyTestForCodeSnippet() {
// <snippet module="ui/border" title="Border">
// ### Creating a Border programmatically
// ``` JavaScript
var button = new buttonModule.Button();
button.text = "OK";
var border = new borderModule.Border();
border.cornerRadius = 10;
border.borderWidth = 1;
border.borderColor = new colorModule.Color("#FF0000");
border.content = button;
// ```
// </snippet>
}