Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

71
Views
How to add border on gridlayout

I'm trying to add borders to this nativescript GridLayout usig the gridStyle

<GridLayout columns="200, 150" rows="15, 20" class="gridStyle">
  <label text="Patient Name" class="rowLabelStyle" row="0" col="0"/>
  <label text="{{ fullName }}" class="rowDataStyle" row="1" col="0"/>
  <label text="DOB" class="rowLabelStyle" row="0" col="1"/>
  <label text="{{ data.subDateOfBirth }}" class="rowDataStyle" row="1" col="1"/>
</GridLayout>

and here is the relevant css

.gridStyle {
    background-color: cadetblue;
    border: solid 1px darkgray ;
}

I have look in many places, tutorial, the official documentation without much luck, the table will not show any orders are all

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

In NativeScript supported CSS properties are border-width, border-color and border-radius. border tag alone would not work.

HTML

<GridLayout columns="200, 150" rows="15, 20" class="gridStyle">
  <label text="Patient Name" class="rowLabelStyle" row="0" col="0"/>
  <label text="{{ fullName }}" class="rowDataStyle" row="1" col="0"/>
  <label text="DOB" class="rowLabelStyle" row="0" col="1"/>
  <label text="{{ data.subDateOfBirth }}" class="rowDataStyle" row="1" col="1"/>
</GridLayout>

CSS

.gridStyle {
  border-color: cadetblue;
  border-width: 1px;
}

More info: https://docs.nativescript.org/ui/styling

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!