WireBootstrap
HomeDocsBuySupport
  • Introduction
  • Overview
  • Getting Started
  • Installation
  • Connecting to Data
    • Data Connectors
      • SQL Data
      • Custom Web Services
      • Local Data
      • Other Sources
    • Data Sources
    • Discovery
    • Building a Data Connector
  • Working With Queries
    • Select Queries
      • Query Extensions
    • Stored Procedures
    • Custom Web Services
    • Executing Queries
    • ORM
  • Writing Data
  • Updates
  • Deletes
  • Working with DataTables
    • Introduction
    • Filter and Sort
    • Select and Calculate
    • Joins
    • Rows
    • Columns
  • Working with DataSets
  • Introduction
  • Executing Queries
  • Transforms
  • Writing Data
  • Data Events
  • Working with Components
    • Introduction
    • Encapsulation
    • Configuration
      • Data
      • Events
      • Observables
      • Validation
      • Display
      • Vendor
      • Custom
    • Component
    • Web Frameworks
    • Building a Component
      • Hello World
      • Data Events
      • DataSets
  • Working With Data Events
    • Introduction
    • Event Basics
    • Event Data
    • Event Actions
  • Working with Themes
    • Introduction
    • Sample Data
    • Libraries
    • Pages
    • Building a Theme Project
  • Utilities
    • Formatting
    • Expressions
    • Collections
    • Spinners
    • Copy and Merge
    • Validation
    • Loading Assets
    • Service Calls
    • Download Files
    • Browser Location
    • Types
    • Promise
  • Reference
    • wire
      • wire.Collection
      • wire.download
      • wire.validate
    • wire.data
      • wire.data.DataEvent
      • wire.data.DataModel
      • wire.data.DataPromise
      • wire.data.DataSet
      • wire.data.DataSource
      • wire.data.DataTable
        • Columns
        • Rows
      • wire.data.StoredProcedure
      • wire.data.TableQuery
    • wire.ui
      • wire.ui.Component
      • wire.ui.validate
Powered by GitBook
On this page
  • Hide
  • Select
  • Spinner

Was this helpful?

  1. Working with Components
  2. Configuration

Display

A popular configuration option for components like tables is to be able to make a group of fields visible or hidden without having to actually remove them from the data.

Hide

In the example below, the UserId field will not be visible in the table using the hide configuration option.

const users = [
    { UserId: 3003, UserName: "jkratz", FullName: "Jamie Kratz" },
    { UserId: 2408, UserName: "pdougherty", FullName: "Pat Dougherty" }
];

const table = new wire.bsTable().render("#table", {
    data: users,
    hide: ["UserId"]
});

Select

The same results can be achieved by listing the fields to be displayed instead using the select configuration option. Depending on how many fields there are in the data and how many need to be hidden or displayed, one or the other option would work best.

const users = [
    { UserId: 3003, UserName: "jkratz", FullName: "Jamie Kratz" },
    { UserId: 2408, UserName: "pdougherty", FullName: "Pat Dougherty" }
];

const table = new wire.bsTable().render("#table", {
    data: users,
    select: ["UserName", "FullName"]
});
const users = [
    { UserId: 3003, UserName: "jkratz", FullName: "Jamie Kratz" },
    { UserId: 2408, UserName: "pdougherty", FullName: "Pat Dougherty" }
];

const table = new wire.bsTable().render("#table", {
    data: users,
    select: "UserName, FullName"
});

Spinner

const table = new wire.bsTable().render("#table", {
    ...
    spinner: false
});
PreviousValidationNextVendor

Last updated 3 years ago

Was this helpful?

The select configuration option can also be set up as a comma delimited string of fields consistent with how columns are selected from or .

By default components will display a spinner when refreshing its UI. To turn this off, use the spinner configuration option. See for details.

data tables
table queries
Spinners