MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / prepareTitle

Function prepareTitle

apps/ui/src/fonts-tests/all-fonts-page.ts:95–108  ·  view source on GitHub ↗
(text: string, fontSize: number)

Source from the content-addressed store, hash-verified

93}
94
95function prepareTitle(text: string, fontSize: number) {
96 let title = new Label();
97 title.text = text;
98 title.height = 100;
99 title.backgroundColor = black;
100 title.color = white;
101 title.fontSize = fontSize;
102 title.style.fontStyle = 'italic';
103 title.borderWidth = 1;
104 title.borderColor = white;
105 title.textAlignment = 'center';
106
107 return title;
108}
109
110function prepareLabel(fontFamily: string, fontStyle: string, fontWeight: string): View {
111 let label = new Label();

Callers 1

generateLabelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected