Files
NativeScript/apps/tests/ui/border/border-tests.ts
2015-03-03 10:34:40 +02:00

36 lines
929 B
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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>
}