Skip to Content
NSUI

Card and Grid

Card surface and a responsive grid for fields.

Use a card to group related content. Use a grid inside it to lay out fields in columns, like a NetSuite record header.

EditCancelSave

The header shows when the card has a heading or content in the actions slot. The footer shows only when the footer slot has content.

A card with no heading and no footer.

Flush

flush removes the body padding. Use it for content that must touch the card edges, such as a data grid.

HTML
<nsui-card heading="Line Items" subheading="3 lines" flush>
  <nsui-data-grid></nsui-data-grid>
</nsui-card>

Grid columns

The grid has 3 columns by default. Set columns to change it. The grid measures its own width, not the window. It changes to 2 columns when it is 720px wide or less, and to 1 column at 460px or less. A grid in a narrow card collapses even on a wide screen.

Spanning cells

Put span="2" on a child to fill two columns. Put span="full" on a child to fill the whole row.

HTML
<nsui-grid>
  <nsui-input label="Memo" span="2"></nsui-input>
  <nsui-input label="Reference No."></nsui-input>
  <nsui-input label="Notes" span="full"></nsui-input>
</nsui-grid>

API

nsui-card

Attributes

Prop

Type

Slots

Prop

Type

CSS parts

Prop

Type

nsui-grid

Attributes

Prop

Type

Slots

Prop

Type

CSS parts

Prop

Type

NSUI is a community project. It is not an official Oracle NetSuite product. NetSuite is a trademark of Oracle.

On this page